Thank you for your participation in the discussio. I think alert server is not only a alert server but also a message notification service. All message should send by it.
The job of Worker node is run the task , so add the email config to work is not a good idea. For example , if we add a new job task and it need send wechat , can we add wechat config to worker.properties? In this feature , Alert server is a message notification service , email and wechat is a plugin of this service . If you want send email message you can create an instance of email plugin in the alert group and then you can select the alert group in SqlTask . SqlTask can call the alert server api with this alert group arrguement to send the message. Thank you! Hemin Wen <wenhe...@apache.org>于2020年7月23日 周四15:10写道: > I > > > -------------------- > DolphinScheduler(Incubator) Commtter > Hemin Wen 温合民 > wenhe...@apache.org > -------------------- > > > JUN GAO <gaojun2...@gmail.com> 于2020年7月20日周一 下午3:53写道: > > > Hi all . > > > > In this feature, we will put the function of sending email into the alert > > email plugin. But I found that SqlTask directly calls the code for > sending > > emails. As a result, after the email function was moved to the > > dolphinscheduler-alert-email module, SqlTask could no longer call the > email > > code. > > > > How should we deal with this situation? > > > > Should SqlTask send emails directly instead of through alert services? If > > SqlTask should send notifications through the alert server, then the > alert > > server should provide something for SqlTask to call. > > > > If you think that SqlTask should send notifications through the alert > > service, then I have a few ideas. You can discuss which is more > > appropriate: > > > > 1. Alert server provides grpc interface or http interface, SqlTask calls > > these interfaces to send notifications. > > > > 2. SqlTask directly inserts an alert data into the table t_ds_alert, and > > then the alert server will automatically send a notification > > asynchronously. > > > > Do you have any suggestions? > > > > DolphinScheduler(Incubator) PPMC > > Jun Gao 高俊 > > gaojun2...@gmail.com > > > -- DolphinScheduler(Incubator) PPMC Jun Gao 高俊 gaojun2...@gmail.com