airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ananth Durai <>
Subject Re: Alert Emails Templatizing
Date Mon, 28 May 2018 20:47:25 GMT
It is a bit tricky;
*Step 1:*
you can write an SLA miss callback, send email from the callback and empty
the `slas` object so that airflow won't sent SLA miss email.

*Step 2:*
You can reuse airflow `send_email` method here

*Step 3:*
If you are sending sla_miss from your callback, you need to mutate the
`sla_miss` table just like

I hope this will get simplified in the future releases.


On 28 May 2018 at 05:48, <>

> Hi team,
> We had a use case where we wanted to serve different email body to
> different use cases at the time of failure & up_for_retry, currently body
> seems to be hard coded in, Is there any plan to make it
> templatized in upcoming future or it will be a good idea if we come across
> with code change and contribute? Please suggest recommended way of
> implementing the feature.
> Regards,
> Vardan Gupta

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message