Mohit-Nanda-Krishna/ReliableJobQueue ? reverse-engineered prompt
Reverse engineered prompt
Build me a reliable backend job queue in JavaScript that can take in jobs, process them with workers, retry failed jobs automatically, recover from worker or process failures, and move jobs to a dead letter queue when they keep failing.
I want it to feel production ready, so make the core flow easy to use, with a simple way to add jobs, run workers, and inspect what happened to each job. Please include sensible defaults, clear logging, and a clean structure that would make it easy to extend later. If you need to check current docs or best practices for anything, go ahead and look them up online.
Keep the code straightforward and focused on reliability. I mostly want something I can run locally and understand quickly, but that is built the way a real backend queue should be built.
Are you gonna build this?
make sure you review the code using coderabbit