@radzor/background-job
Persistent background job queue with retries, scheduling, and concurrency control. Built on BullMQ (Redis) or pg-boss (PostgreSQL). Supports delayed jobs, cron-scheduled jobs, priority queues, and dead letter queues.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| driver | 'bullmq' | 'pg-boss' | pg-boss | Queue driver. bullmq requires Redis. pg-boss uses your existing PostgreSQL database. |
| connection* | string | — | Redis URL (bullmq) or PostgreSQL connection string (pg-boss). |
| concurrency | number | 5 | Maximum number of jobs processed in parallel. |
| maxAttempts | number | 3 | Maximum retry attempts before a job moves to the dead letter queue. |
| backoffMs | number | 1000 | Initial delay in milliseconds for exponential backoff between retries. |
Queue driver. bullmq requires Redis. pg-boss uses your existing PostgreSQL database.