Adding status emails
You've worked through most of the Airflow configuration for setting up your workflows, but you realize you're not getting any notifications when DAG runs complete or fail. You'd like to setup email alerting for the success and failure cases, but you want to send it to two addresses.
This exercise is part of the course
Introduction to Apache Airflow in Python
Exercise instructions
- Edit the
execute_report_dag.py
workflow. - Add the emails
[email protected]
and[email protected]
to the appropriate key indefault_args
. - Set the failure email option to True.
- Configure the success email to send you messages as well.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
