airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxime Beauchemin <maximebeauche...@gmail.com>
Subject Re: Email on last failed try
Date Fri, 28 Jul 2017 16:42:20 GMT
Wouldn't `email_on_failure=True` work for you?
https://airflow.incubator.apache.org/code.html?highlight=email_on_failure#baseoperator

On Fri, Jul 28, 2017 at 9:32 AM, Andrew Maguire <andrewm4894@gmail.com>
wrote:

> Hey,
>
> Just wondering if anyone knows if there might be a way to only send email
> on the last failed try of a task?
>
> Could I use a callable on failure only send the mail on the last failed
> try.
>
> We are using big query and getting lots of transient errors around limit of
> concurrent queries that usually work on 2nd or 3rd try.
>
> Else I might just use Gmail rules to filter emails accordingly.
>
> Just wondering if anyone has done anything like this before or if there
> would be an easy enough way to do this.
>
> Cheers,
> Andy
>

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