PrepCity

Catch-up runs

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 6 pages · about 5 min

Catch-up runs

After the scheduler has been off, catch-up creates a run for every day it missed. Measured: the gap without it, and why running them all at once is slower than two at a time.

What it is
When a scheduler such as Airflow has been switched off, catch-up creates the runs it missed, one per day, so no day is left empty.
What it is for
Every missed night is a day missing from the sales table. Catch-up fills the gap, but all the runs it creates pull from the same database.
Use it when
After any outage or pause of a scheduled pipeline. Limit how many runs go at once to what the source can take.
Not when
For jobs that only care about now, like a live stock count: an old run has nothing useful to fetch, so turn catch-up off.

Words you’ll learn

  • Data pipeline
  • Airflow
  • Database
  • Partition
  • Retry
  • Catch-up run
  • max_active_runs
  • Queue
  • Outage
  • Backfill

Page by page