LakshyaR36/distributed-task-queue ? reverse-engineered prompt

Reverse engineered prompt

Build me a distributed task queue app where users can submit background jobs through a simple API, check job status later, and schedule jobs to run in the future. I want it to support different priority levels so urgent jobs run first, and I want failed jobs to retry automatically a few times before being moved to a dead letter queue for review.

It should be reliable even if a worker crashes, so use a database for the real job state and a fast in memory queue for processing. Add worker heartbeats, locking so the same job is not run twice, and some basic rate limiting on the API. I also want a clean web dashboard that shows queue sizes, worker health, and recent task history in real time. Please include Swagger style API docs, Prometheus metrics, and a simple setup that runs locally with Redis and PostgreSQL. If you need to check current docs for anything, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab