Skip to content

1. Your First Daily DAG

Difficulty: Easy · Topic: Schedules & catchup

The shop's orders pipeline has three steps, each a shell command. Write the DAG orders_daily:

Each test deploys your file at some time and reads the scheduler a while later: which runs exist, when each task ran, and the command it ran.

Your DAG file is run in a simulation of the Airflow 3 scheduler against 4 scenarios, including hidden ones.

Sample scenario: Deployed mid-morning

Deployed 2026-01-05 09:00 UTC, read at 2026-01-06 07:00 UTC.

Expected runs

Hints

Hint 1A cron string sets the time of day: the fields are minute hour day-of-month month day-of-week. "@daily" means midnight.
Hint 2In Airflow 3, catchup is False by default, which is exactly "only the most recent schedule".
Hint 3a >> b >> c chains three tasks. a >> [b, c] would run b and c in parallel.

Learn the concepts

More Airflow problems

All Airflow problems · Learn Airflow