malthe opened a new issue, #29949: URL: https://github.com/apache/airflow/issues/29949
### Description This is about dynamically being able to configure email sending on failure per DAG, using the Airflow UI. ### Use case/motivation We have a scenario where failures in our test environment are fairly common while production failures are important if not critical. For this reason, we typically end up with a line such as: ```python default_args["email_on_failure"] = os.environ["AIRFLOW_ENVIRONMENMT"] == "prod" ``` That works, but it would be nice and clean if we were able to set this to `None`, instead having this as a toggle in the Airflow UI – so that when we enable a DAG, we can also choose whether to receive email on failure or not, and even change this setting dynamically. ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
