malthe commented on issue #29949:
URL: https://github.com/apache/airflow/issues/29949#issuecomment-1459599229

   Email notification is perhaps just one area where there is configuration 
logic that one might want out of DAG code, but perhaps the big picture here is 
that email notifications are just events that something happened.
   
   It could be that rather than wanting more flexibility for email within 
Airflow, moving to something like the [OpenTelemetry Events 
API](https://opentelemetry.io/docs/reference/specification/logs/event-api/) 
makes more sense.
   
   From there, an event listener can decide to send an email or post a message 
to a Slack channel etc depending on the event metadata (first and foremost the 
event name which in this case is something akin to "task failed" or "dag 
failed").


-- 
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]

Reply via email to