weixiaonan1 commented on issue #14832: URL: https://github.com/apache/dolphinscheduler/issues/14832#issuecomment-1711039263
> The event generator doesn't need to care about if there exists an event consumer. I think it is necessary to check if there exists an event consumer. The number of events can be large. If there doesn't exist an event consumer, we will do a lot of useless work: generate events, save to DB, receive from DB, and delete them because no instance can process these events. So it would be better to have a switch to control whether events are generated or not, and query t_ds_alert_plugin_instance is a good option. This table's data number is small, and we can just query this table only once when constructing the `WorkflowExecuteRunnable`, to control whether WorkflowStart/End/Fail and TaskStart/End/Fail events are generated or not. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
