Postgres job queue with dead letters
The idea
Background work is stored as job rows, claimed with leases and heartbeats, and retried with backoff. A job that keeps failing stays as a dead letter for 30 days.
- The problem
- Work must survive crashes without a separate queue service, and failures must not disappear.
- Why it matters
- Another process picks up a crashed job, each org gets a fair share, and an admin can replay a dead job.
- Where it stands
- In production as of
A step-by-step replay of this idea is not published yet. The library adds one when a recorded run shows it.