Skip to content

10. Each Day Waits for Yesterday

Difficulty: Hard · Topic: Ordering & concurrency

The DAG running_balance keeps a running total, so each day builds on the day before. It runs @daily from 2026-03-01 to 2026-03-05 with catchup=True, and has two BashOperator tasks:

The rules:

update_balance has retries=1 and retry_delay=timedelta(minutes=5).

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

Sample scenario: Five clean days

Deployed 2026-03-10 00:30 UTC, read at 2026-03-10 02:00 UTC.

Expected runs

Hints

Hint 1depends_on_past=True makes a task wait for the same task in the previous run, and only that task.
Hint 2wait_for_downstream=True also waits for the tasks directly downstream of it in the previous run. It turns on depends_on_past for that task.
Hint 3A held-back task stays with no state, and its run stays running. Nothing fails or gets skipped.

Learn the concepts

More Airflow problems

All Airflow problems · Learn Airflow