Write a background job worker
Set up a background job worker with retries, exponential backoff, metrics, and a paired producer. Supports BullMQ, Sidekiq, Celery, and similar libraries.
Preview
Copy prompt
Write a background job worker in [Language] using [Queue library, e.g. BullMQ, Sidekiq, or Celery]. Define a job that processes [Task description]. Implement retry logic with exponential backoff for transient failures, structured logging for job start, success, and failure events, and metric instrumentation for queue depth and processing latency. Include both a producer that enqueues jobs and a consumer worker that processes them.
More
Code Generation
Prompts
