Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

BullMQ

Fast, reliable Redis-backed queue for jobs and messages in Node.js.

Jobs, queues and workflowsNPM

GitHubWebsite

1. License

License from npm.

github.com/taskforcesh/bullmq

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What BullMQ does

BullMQ ships native libraries for Node.js, Python, Rust, Elixir, PHP and .NET that run the same scripts against one Redis or PostgreSQL queue, so a job added from one language can be processed by a worker in another.

BullMQ popularity

67 / 100
Gid Score, #529 overall
13.9M
downloads a week, npm
9,628
GitHub stars
35
agent projects use it
BullMQ: downloads per weeknpm, bullmq 13,855,940
BullMQ: GitHub starstaskforcesh/bullmq 9,628

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How BullMQ is used

  • BullMQ is a dependency in 35 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.7% of the 4,867 JavaScript/TypeScript ones), #5 of 48 in jobs, queues and workflows.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 117; those are left out of every share on this page.
  • The most used alternative in our scan is Bull (6 projects).
  • Projects that use it most often also use ioredis (88.6%), dotenv (74.3%), tsx (57.1%).

By coding agent

25 projects, 0.8%
17 projects, 0.6%
16 projects, 0.7%

Often used with

In 88.6% of its projects
In 74.3% of its projects
In 57.1% of its projects
In 65.7% of its projects
In 71.4% of its projects
In 97.1% of its projects
In 42.9% of its projects
In 40.0% of its projects

BullMQ in practice

Strengths

One queue, several languages

The site says you can write producers in Node.js and consumers in Python against the same queue. It pitches this at microservices and polyglot stacks.

A PostgreSQL backend you can query with SQL

On the PostgreSQL backend, jobs are rows in a <code>bullmq</code> schema. The debugging guide shows a plain <code>SELECT state, count(*)</code> query that checks a queue without any BullMQ code.

Job trees across queues with FlowProducer

<code>FlowProducer</code> adds a parent job and its nested children in one call. In the README example the root job sits in <code>topQueueName</code>, its children in <code>childrenQueueName</code> and the grandchildren in <code>grandChildrenQueueName</code>.

Schedulers that act as job factories

The site describes job schedulers as factories that produce jobs from cron expressions, fixed intervals or custom patterns. It also lists upsert semantics and job templates.

Watch out for

Feature support differs by language

The runtimes page says only the core queue behavior is shared. Higher-level features are added to each library separately. The PHP client currently has no worker support: its table marks processing jobs, rate limiting, flows and job events as not available for PHP.

CPU-heavy work causes false stalls

A worker renews its job lock from the Node.js event loop. Long synchronous work blocks that loop, so the lock can expire and the job is marked stalled while it is still running. The guide suggests sandboxed processors, splitting the job with flows, or a larger <code>lockDuration</code>.

Queue identity is easy to get wrong

The debugging guide calls a worker that listens to a different queue "the most common cause" of jobs stuck in waiting. The queue name must match including case. On Redis the prefix, host, port and database number must also match.

Add a job, process it, listen for completion

import { Queue } from 'bullmq';

const queue = new Queue('Paint');

queue.add('cars', { color: 'blue' });

import { Worker } from 'bullmq';

const worker = new Worker('Paint', async job => {
  if (job.name === 'cars') {
    await paintCar(job.data.color);
  }
});

import { QueueEvents } from 'bullmq';

const queueEvents = new QueueEvents('Paint');

queueEvents.on('completed', ({ jobId }) => {
  console.log('done painting');
});

More about BullMQ

Packages around it
  • ioredis: Redis client
  • dotenv: .env config loader
  • tsx: Run TypeScript directly
  • vitest: Test runner
  • zod: Schema validation
  • typescript: Typed JavaScript
More in Jobs, queues and workflows

Alternatives

BullMQ This page

MITGid 6713.9M/wk

Bull

Redis-based job queue for Node.js.

MITGid 562.1M/wk

pg-boss

Job queue for Node.js on PostgreSQL.

MITGid 545.2M/wk

Compare BullMQ with another tool

Get started

Install it.

npm install bullmq

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## BullMQ
- Give the producer and the worker the same queue name (case matters). On Redis, also match the `prefix` (default `bull`), host, port and database number. On PostgreSQL, match the database and schema (default `bullmq`).
- Make every processor code path return or throw, and add timeouts to network calls. A processor that never settles keeps the job active forever.
- Move CPU-heavy processors to sandboxed processors, or split them with flows, so the worker can keep renewing its lock.
- On shutdown, handle `SIGTERM` with `await worker.close()` so current jobs finish before exit.
- On PostgreSQL, run `runMigrations` as a deploy step or pass `migrate: true` on the connection. Otherwise workers fail with `SchemaMigrationRequiredError`.
- Only read BullMQ's PostgreSQL tables. Change jobs through BullMQ or a dashboard, never with direct SQL writes.
- When using the node-redis adapter (`createNodeRedisClient`), install `redis` 5.0.0 or newer.