Raghav-RB/JobForge ? reverse-engineered prompt

Reverse engineered prompt

Build me a Node app that lets an API create background jobs and lets separate worker processes handle them later, instead of doing the work inside the request.

I want an Express server with endpoints to create a job, list jobs waiting in the queue, list failed jobs, process a job synchronously for comparison, and replay a failed job back into the queue. Use Redis to store the queue, with one main FIFO queue, a delayed retry queue, and a dead letter queue for jobs that keep failing. If a job fails, retry it automatically up to a limit, then move it to the failed jobs list. Also add a scheduler process that moves delayed retries back into the main queue when they are due.

Please include support for running multiple workers at once without duplicating jobs, and add tests for the API and queue flow. Docker support for Redis would be great too, and if you need current library details, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab