Skip to main content
@usenarrator/plugin-bullmq The BullMQ plugin reads background job code as a schedule. Adding a job says which queue it goes to, with what data, and the options that matter (“up to 5 attempts, waiting 1 second and doubling between tries”). Job schedulers and repeatable jobs turn their cron patterns into words, and a worker reads as what it does with each job, followed by the steps of its processor.
The plugin declares library: { name: "bullmq", versions: ">=5 <7" }. It only narrates files that import BullMQ (or BullMQ Pro) or belong to a package that depends on it (see Dependency detection), so Set#add and other libraries’ Queue and Worker classes are left alone.

Examples

Queues and job options
English
Job schedulers
English
A worker and its events
English

What it covers

  • Queues: new Queue with its default job options, add and addBulk, job IDs and deduplication, and maintenance such as pause, drain, clean and obliterate.
  • Job options: attempts and backoff, delays, priorities, LIFO, and how long finished jobs are kept.
  • Schedules: upsertJobScheduler with every or a cron pattern and time zone, removing schedulers, and v5 repeatable jobs. Cron patterns read as words (“every Monday at 09:00”).
  • Workers: inline, sandboxed and named processors, concurrency and rate limits, job methods such as updateProgress, worker events, and close.
  • QueueEvents and FlowProducer, where a parent job runs once its children finish.

Translating

The English phrasebook is exported as en and typed as BullmqPhrases. Its time section holds the words for durations and cron schedules, which the Inngest, Trigger.dev and Temporal plugins share in the same shape (TimePhrases).