1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Airflow in Python

Exercise

Defining an SLA

You've successfully implemented several Airflow workflows into production, but you don't currently have any method of determining if a workflow takes too long to run. After consulting with your manager and your team, you decide to implement an SLA at the DAG level on a test workflow.

All appropriate Airflow libraries have been imported for you.

Instructions

100 XP
  • Import the timedelta object.
  • Define an SLA of 30 minutes.
  • Add the SLA to the DAG.