Exercise

Generate and email a report

Airflow provides the ability to automate almost any style of workflow. You would like to receive a report from Airflow when tasks complete without requiring constant monitoring of the UI or log files. You decide to use the email functionality within Airflow to provide this message.

All the typical Airflow components have been imported for you, and a DAG is already defined as dag.

Instructions

100 XP
  • Define the proper operator for the email_report task.
  • Fill the missing details for the Operator. Use the file named monthly_report.pdf.
  • Set the email_report task to occur after the generate_report task.