dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Question] email config is must?

Open liuzx8888 opened this issue 6 years ago • 7 comments

question: 现在组件中邮件的设置是必须选项 image

跟踪代码, 方法[sendAttachment] 在执行完sql结果后会立即执行,如果邮件发送不成功,项目就失败 ,不知道是我查的方向有问题,还是这里的设置就是如此,这样的设置是不是不太合理,有很多在内网运行的项目,并没有邮件服务器,也无法连接到互联网,这种的项目是不是就无法使用这个工具呢,或者有其他地方设置取消这个选项么?

image

version 1.3.1

liuzx8888 avatar Aug 12 '20 06:08 liuzx8888

yes, for now the mail cofig must be set, if you have some suggestions,please leave message

davidzollo avatar Aug 12 '20 08:08 davidzollo

yes, for now the mail cofig must be set, if you have some suggestions,please leave message I hope there is an option to set whether to send or not, allowing users to choose whether to send under any circumstances or send only when it fails or not send at any time

liuxuedongcn avatar Aug 12 '20 08:08 liuxuedongcn

yes, for now the mail cofig must be set, if you have some suggestions,please leave message @dailidong @liuxuedongcn

我想请教下,首先是否邮件如果不设置、sql语句正确的前提下也是无法正确完成任务的对么?

假如是这样的话,那是不是不太合理,有些场景是无法配置这些信息的,类似我们现在做的都是在局域网内的项目,无法设置这些信息,那这个工具是不是就无法使用呢?真心请教!!!

liuzx8888 avatar Aug 12 '20 09:08 liuzx8888

@liuzx8888 你有遇见这个SQL查询节点,失败的告警邮件可以发送但是查询结果的邮件发送失败的情况嘛?其实我有点搞不懂到底是执行SQL失败了还是发送消息失败啦。worker也没有具体日志。 这个是我的执行日志 image

Jops-data avatar Aug 12 '20 10:08 Jops-data

@Jops-data 是的 我的跟你的一样的,我是在本地搭了一个开发环境,我把那个 发送的邮件的代码注释掉就好了。我跟踪出来的情况是这样的。

liuzx8888 avatar Aug 12 '20 10:08 liuzx8888

@Jops-data 是的 我的跟你的一样的,我是在本地搭了一个开发环境,我把那个 发送的邮件的代码注释掉就好了。我跟踪出来的情况是这样的。

Hi~ If you want the feature about just execute sql not to send mail, please create an issue about this feature.

BTW,English is needed.

yangyichao-mango avatar Aug 14 '20 04:08 yangyichao-mango

Close by #5104

The switch to send mail has supported in next 1.3.6

image

chengshiwen avatar Apr 10 '21 10:04 chengshiwen