By Orch8 Engineering · Editorial policy
Backfill Missed Scheduled Jobs Safely
List the schedule’s intended business windows and compare them with confirmed outputs. Backfill the missing windows with their original keys and input ranges, then verify the destination results. An active or uncertain window needs investigation before it can join the batch.
What is the practical answer?
List the schedule’s intended business windows and compare them with confirmed outputs. Backfill the missing windows with their original keys and input ranges, then verify the destination results. An active or uncertain window needs investigation before it can join the batch. A weekday settlement report stopped generating on Tuesday. Use the configured timezone, weekday rules, and outage interval to enumerate the expected windows. Include the original start and end timestamps for each window and the intended output identity. A manual run started on Friday can still owe Tuesday’s report and must use Tuesday’s data window. Join the expected calendar to a completion ledger that records accepted output IDs. Distinguish completed, missing, in flight, and ambiguous states. If a scheduled run committed partly, list its external effects individually. Resolve any apparent conflict between the scheduler and the destination before creating replacement work.
Evidence: Apache Airflow backfill controls · Reddit webhook outage discussion
- Enumerate expected windowsInput
- Compare destination receiptsDecision
- Run eligible backfillRecovery
- Reconcile completed windowsExternal action
Reconstruct expected work from the calendar#
| What you find | What to do |
|---|---|
| No confirmed result and no active run | include the missing window. |
| Run is still in progress | defer the window until it reaches a known outcome. |
| Destination confirms a partial result | replay only missing effects through their original keys. |
Backfill with a concurrency limit#
Freeze a manifest and dry-run it first. Show operators how many windows will run, which will be skipped, and which need review. Apply the same idempotency key as the original scheduled job. Keep the backfill’s concurrency low enough that current scheduled work can meet its deadline, and retain an audit link to the outage.
Keep historical windows independent from current traffic#
Define the missing interval before enqueueing anything. A manifest might include date, timezone, planned input cutoff, business key, and a reason such as missing receipt. Capture only windows whose expected source data is now available. A report that ordinarily runs the previous business day’s data must use that same input range when backfilled two weeks later.
Use a limited worker pool or queue that leaves capacity for the active schedule. Show operators progress as completed windows and unresolved effects. If data corrections changed the intended report after the original run, decide whether the backfill should recreate the historical result or intentionally publish a revision. Store that choice next to the manifest.
Verify it with a failure drill#
Prepare a fixture with Tuesday missing, Wednesday completed, and Thursday still processing. Run a dry backfill, then release only Tuesday.
- Verify Tuesday receives one output, Wednesday’s receipt stays unchanged, and Thursday is excluded until it resolves. Repeating the manifest should produce zero new outputs.
Sources and further reading
Official references support technical claims; community discussions are used only as problem signals.