Build a Job Queue with Dashboard
Build a job queue system with worker processes, retry logic, and real-time monitoring.
Requirements
Enqueue jobs with: type, payload, priority (low/normal/high/critical)Worker that picks up and processes jobs (simulated with configurable delay)Retry logic: failed jobs retry up to 3 times with exponential backoffJob states: PENDING, RUNNING, COMPLETED, FAILED, RETRY, DEADReal-time dashboard: queue depth, processing rate, success/failure countsJob detail view: state history, attempt logs, timingBatch operations: pause queue, resume, purge dead jobsTechnical Notes
Use a database table as the queue. Workers poll for jobs. Dashboard updates via polling or WebSocket.
Bonus Points
Concurrent worker pool (configurable parallelism)Job scheduling (run at specific time)Dead letter queue with manual retry