Skip to content

2. Backfill January, One Day at a Time

Difficulty: Medium · Topic: Schedules & catchup

Sales figures for January 2026 have to be recomputed day by day. Write the DAG sales_backfill:

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

Sample scenario: Deployed on 4 January

Deployed 2026-01-04 12:00 UTC, read at 2026-01-04 13:00 UTC.

Expected runs

Hints

Hint 1catchup=True makes the scheduler create a run for every schedule since start_date, oldest first.
Hint 2end_date is the last time a run may be scheduled for: a run whose logical date is after it is never created.
Hint 3max_active_runs=1 keeps one run of the DAG going at a time; the next one is created when it finishes.

Learn the concepts

More Airflow problems

All Airflow problems · Learn Airflow