You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/11/25 11:04:18 UTC

[GitHub] [airflow] JavierLopezT commented on issue #12612: Send failure email just if all retries fail

JavierLopezT commented on issue #12612:
URL: https://github.com/apache/airflow/issues/12612#issuecomment-733637414


   > Won't that be handled by `on_failure_callback`?
   
   Since you say so, I guess it will be possible, but after a quick research on Google I can't figure it out. My idea is having a parameter like 'email_on_fail_retries' that you can set to False, which I think is way easier than doing it with on_failure_callback. 
   
   Also, not sure if I understood correctly, but you would have to have the callback function on every dag that you want to use it, right? So it will be a lot of duplicated code (or more complexity added creating a module or something like that)


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org