Dev Tools · 1h ago
The Reconciler Pattern: Fixing Jobs That Never Run
A queued job dispatched once at row creation can silently fail if the dispatch is lost, leaving rows stuck in 'pending' forever. Retries only help jobs that ran; a reconciler sweeps for stale, unclaimed rows and re-dispatches them. The database, not the queue, is the source of truth for job state.
Meridian48 take
This pattern is a practical fix for a common but invisible failure mode in queue-based systems, though it adds complexity that many teams overlook until data rots.
queue-patternsjob-reconciliation