Resume reminders without replaying an obsolete queue
Restoring a scheduler does not answer what the business wants it to do with work whose scheduled time has passed. Replaying every occurrence can be correct for one process and misleading for another.
This fictional case concerns reminders for an advisory-review task. The business wants a reminder about current unresolved work, not a separate historical notice for every missed quarter hour. The example assumes an inspected APScheduler 3.x installation with a persistent job store and a controlled notification sink. No operational notice is sent.
Establish the task and the schedule
Task R-61 asks an authorised reviewer to assess one approved source update. Its reference, source and assigned reviewer are already recorded. The reminder job is associated with that task and normally runs every fifteen minutes while the task remains open.
All times below are UTC on 3 November 2026. A real team's display can also show the agreed local time, but each occurrence retains an unambiguous instant. The problem in this case is the recovery policy, not a conversion between clocks.
The scheduler stops at 13:55 and resumes at 14:35. It misses the 14:00, 14:15 and 14:30 occurrences. R-61 is still open. The configured grace period allows those late runs, and coalescing is disabled.
On restart, the controlled sink receives three reminder attempts in quick succession. They concern the same current task. The source notice has not changed three times, and the reviewer has not been assigned three new decisions.
Ask which historical work remains useful
The operations owner approves this rule: after an interruption, send at most one current catch-up reminder for an open task, then resume the ordinary schedule. Do not send a reminder for a task that has been closed. Retain evidence of the interrupted period without pretending that a message was delivered at each missed time.
That rule is specific to reminders. It would not automatically be suitable for accounting entries, legally required records or a workflow where each occurrence represents distinct work. The developer must identify the job's meaning before applying a scheduler setting broadly.
The task record remains R-61. Its owner, source reference and review status are unchanged. Catch-up handling does not create a replacement task, reset a deadline or approve the underlying advisory.
Compare the supported behaviour
The APScheduler 3.x user guide explains that missed executions can run in succession when permitted by the grace setting, and that coalescing can combine queued occurrences into one execution. It also notes that bypassed runs do not generate misfire events. Version-specific documentation matters; another scheduler or release can expose a different model.
For this inspected installation, the selected repair enables coalescing on the reminder job and retains the owner-approved grace period. The job reads the current task state when it executes. If R-61 is closed, it prepares no reminder.
The team does not rely on nonexistent bypass notifications for its audit. Its existing schedule ledger records the planned occurrences and the observed outage. The recovery entry identifies three missed scheduled times: 14:00 and 14:15 are bypassed, while the latest scheduled occurrence, 14:30, executes late at 14:35. It records the actual outcome available from the notification sink. A preparation record is not labelled as a delivered customer message.
Rehearse the interrupted period
Reset the isolated fixtures to the same pre-outage state. With the correction, recovery at 14:35 prepares one current reminder for R-61. The content identifies the still-open review task and its source; it does not claim three distinct changes or backdate its preparation to 14:00.
| Point in the rehearsal | R-61 result |
|---|---|
| 14:00, 14:15, 14:30 during interruption | Planned occurrences retained; no claimed execution |
| 14:35 recovery, task open | One current catch-up reminder prepared |
| 14:45 ordinary occurrence, still open | One ordinary reminder prepared |
| 14:50 authorised reviewer closes task | Task records the actual completed review |
| 15:00 ordinary occurrence | No reminder prepared for the closed task |
A second run closes R-61 at 14:25 through the permitted task process while the scheduler is unavailable. When scheduling resumes at 14:35, the current-state check suppresses the catch-up reminder. The missed schedule remains in the ledger, but it does not override the completed review.
R-62 is an independent open task with its own reminder job. It still receives its intended preparation. Coalescing R-61's missed occurrences must not merge different task identities or remove another reviewer's work.
Check what the setting does not solve
Coalescing is not a guarantee of exactly-once external delivery. It controls which missed scheduled executions are queued in the described situation. The actual notification integration still needs its own treatment of uncertain receipts, retries and duplicates. Those capabilities must be inspected rather than inferred from the scheduler setting.
Likewise, a reminder cannot establish that the reviewer understood the source or that an approved customer message exists. The review record supplies that evidence. If the notification provider is unavailable, the operating procedure should make the current task and investigation route visible without claiming delivery.
Hand over the recovery policy
Document the affected job, installed scheduler version, grace and coalescing settings, task-state check and separate schedule evidence. The next maintainer should be able to repeat the interrupted-run fixture and explain why the policy suits reminders but has not been applied indiscriminately to other jobs.
The completed result is a bounded recovery: one current catch-up notice, an intact task history, preserved evidence of missed occurrences and a working future schedule. The advisory workflow service considers how that reminder fits the larger source-review process.
