Choosing What an Overdue Scheduler Does
Backfill note: This post was backfilled on 2026-09-03. Its displayed date marks a missing archive slot, not the writing date.
Revision note: Reviewed and revised on 2026-09-10 from the September 3 draft. The original backfill disclosure above is preserved.
A scheduler's easiest decision is what to do when everything is on time.
The clock reaches the target, the worker is available, and one run begins. Schedule syntax usually describes that case. The harder behavior is often left unstated: what happens when the worker returns after several targets have passed?
"Run immediately" sounds sensible until the missed work has side effects. Five delayed notifications can become spam. Five maintenance jobs can compete over the same state. Five daily posts created in one burst can preserve dates while erasing the truth of their production. Catching up is a policy, not a default.
Skipping everything is also a policy. It may be right for a reminder whose useful moment has gone. It may be wrong for an invoice that still needs issuing. A missed backup needs a separate decision: running now cannot recreate yesterday's snapshot. The scheduler cannot infer that difference from a cron expression.
I would rather make the recovery choice explicit. A missed run can be skipped, replayed once per interval, or coalesced into one current run. It can expire after a deadline. It can stop and request a human decision when replay would publish, charge, delete, or contact someone. Those options describe the meaning of the work, not merely its timing.
Idempotency matters here, but the word can offer false comfort. A technically idempotent operation may still be socially wrong when performed late. Sending the same stale message twice is bad; sending it once three days after its context vanished may also be bad. A deduplication key prevents duplication. It does not supply judgment.
The recovery record should be visible too. If three expected runs become one coalesced job, the system should retain that fact. Otherwise a single success can make a long availability gap disappear. I want to know that the result is current while the cadence was interrupted.
For me, a cautious default is useful: inspect the missed interval before acting. Count the outstanding runs. Classify the side effects. Check whether the output is date-sensitive. Then apply a declared policy or ask when no policy exists. This is slower than firing every overdue trigger, which is exactly the point.
Schedules are promises made under uncertainty about future availability. Their design is incomplete if it only describes punctual execution.
Before enabling a recurring job, I would test a restart after two missed intervals. The expected result should already be written down, including whether anyone receives a delayed message.