MCPcopy Create free account
hub / github.com/taskforcesh/bullmq

github.com/taskforcesh/bullmq

Chat with this repo
repository ↗ · DeepWiki ↗ · release vnet1.2.1 ↗ · + Follow · compare 65 versions
4,264 symbols 17,837 edges 378 files ⚖ MIT 1,345 documented · 32% updated todayv6.3.6 · 2026-09-14★ 9,413276 open issues

Browse by type

Functions 3,769 Types & classes 487 Endpoints 8
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The fastest, most reliable, Redis-based distributed queue for Node.js, Python, Elixir, .NET, Rust, PHP, and more.


Carefully written for rock solid stability and atomicity.

Read the documentation

<a href="https://join.slack.com/t/bullmq/shared_invite/zt-1nbtpk6mv-TItWpF9jf3k4yrCaS0PPZA">
  <img src="https://img.shields.io/badge/Slack-4A154B"/>
</a>    
<a href="https://badge.fury.io/js/bullmq">
  <img src="https://badge.fury.io/js/bullmq.svg"/>
</a>
<a href="https://coveralls.io/github/taskforcesh/bullmq?branch=master">
  <img src="https://coveralls.io/repos/github/taskforcesh/bullmq/badge.svg?branch=master"/>
</a>
<a href="https://github.com/semantic-release/semantic-release">
  <img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg"/>
</a>
<a href="https://github.com/sponsors/taskforcesh">
  <img src="https://img.shields.io/badge/sponsor-30363D?style=flat&logo=GitHub-Sponsors&logoColor=EA4AAA"/>
</a>






<em><a href="https://x.com/bullmqhq">Follow Us</a> for *important* Bull/BullMQ/BullMQ-Pro news and updates!</em>

🛠 Tutorials

You can find tutorials and news in this blog: https://blog.taskforce.sh/

News 🚀

🌐 Language agnostic BullMQ

BullMQ is available natively in multiple languages:

  • Node.js / Bun — This repository (npm install bullmq)
  • Pythonpython/ directory (pip install bullmq)
  • Rustrust/ directory (cargo add bullmq-official --rename bullmq)
  • Elixirelixir/ directory ({:bullmq, "~> x.x"})
  • .Netdotnet/ directory (dotnet add package BullMQ)
  • PHPphp/ directory

For other platforms, check out the BullMQ Proxy.

Official FrontEnd

Taskforce.sh, Inc

Supercharge your queues with a professional front end:

  • Get a complete overview of all your queues.
  • Inspect jobs, search, retry, or promote delayed jobs.
  • Metrics and statistics.
  • and many more features.

Sign up at Taskforce.sh

🚀 Sponsors 🚀

Dragonfly Dragonfly is a new Redis™ drop-in replacement that is fully compatible with BullMQ and brings some important advantages over Redis™ such as massive better performance by utilizing all CPU cores available and faster and more memory efficient data structures. Read more here on how to use it with BullMQ.

Used by

Some notable organizations using BullMQ:

Microsoft Vendure Datawrapper Nest Langfuse
Curri Novu NoCodeDB Infisical

The gist

Install:

$ yarn add bullmq

If you use the node-redis adapter (createNodeRedisClient), install redis v5 or newer (redis >= 5.0.0).

If you use the Valkey Glide adapter (createValkeyGlideClient), install @valkey/valkey-glide.

Add jobs to the queue:

import { Queue } from 'bullmq';

const queue = new Queue('Paint');

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

Process the jobs in your workers:

import { Worker } from 'bullmq';

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

Listen to jobs for completion:

import { QueueEvents } from 'bullmq';

const queueEvents = new QueueEvents('Paint');

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

queueEvents.on(
  'failed',
  ({ jobId, failedReason }: { jobId: string; failedReason: string }) => {
    console.error('error painting', failedReason);
  },
);

Adds jobs with parent-child relationship:

import { FlowProducer } from 'bullmq';

const flow = new FlowProducer();

const originalTree = await flow.add({
  name: 'root-job',
  queueName: 'topQueueName',
  data: {},
  children: [
    {
      name: 'child-job',
      data: { idx: 0, foo: 'bar' },
      queueName: 'childrenQueueName',
      children: [
        {
          name: 'grandchild-job',
          data: { idx: 1, foo: 'bah' },
          queueName: 'grandChildrenQueueName',
        },
        {
          name: 'grandchild-job',
          data: { idx: 2, foo: 'baz' },
          queueName: 'grandChildrenQueueName',
        },
      ],
    },
    {
      name: 'child-job',
      data: { idx: 3, foo: 'foo' },
      queueName: 'childrenQueueName',
    },
  ],
});

This is just scratching the surface, check all the features and more in the official documentation

Feature Comparison

Since there are a few job queue solutions, here is a table comparing them:

Feature BullMQ-Pro BullMQ Bull Kue Bee Agenda
Backend redis redis redis redis redis mongo
Observables
Group Rate Limit
Group Support
Batches Support
Parent/Child Dependencies
Deduplication (Debouncing)
Deduplication (Throttling)
Priorities
Concurrency
Delayed jobs
Global events
Rate Limiter
Pause/Resume
Sandboxed worker
Repeatable jobs
Atomic ops
Persistence
UI
Optimized for Jobs / Messages Jobs / Messages Jobs / Messages Jobs Messages Jobs

Contributing

Fork the repo, make some changes, submit a pull-request! Here is the contributing doc that has more details.

Thanks

Thanks for all the contributors that made this library possible, also a special mention to Leon van Kammen that kindly donated his npm bullmq repo.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 2,900
Function 869
Class 351
Interface 113
Enum 23
Route 8

Languages

TypeScript38%
Rust24%
Python21%
C#14%
PHP3%

Modules by API surface

rust/tests/worker_test.rs169 symbols
src/classes/node-redis-client.ts140 symbols
src/classes/redis-queue-backend.ts139 symbols
rust/src/queue.rs121 symbols
src/postgres/postgres-queue-backend.ts111 symbols
src/classes/valkey-glide-client.ts103 symbols
rust/tests/flow_test.rs99 symbols
src/classes/bun-redis-client.ts96 symbols
src/interfaces/queue-backend.ts86 symbols
dotnet/src/BullMQ/PostgresBackend.cs83 symbols
python/bullmq/backends/postgres_backend.py82 symbols
dotnet/src/BullMQ/RedisBackend.cs82 symbols

Dependencies from manifests, versioned

predis/predis3.0 · 1×
ramsey/uuid4.7 · 1×
rybakit/msgpack0.9 · 1×
@commitlint/cli21.2.2 · 1×
@commitlint/config-conventional21.2.2 · 1×
@eslint/eslintrc3.3.7 · 1×
@eslint/js10.0.1 · 1×
@semantic-release/changelog7.0.0 · 1×
@semantic-release/commit-analyzer13.0.1 · 1×
@semantic-release/exec7.1.0 · 1×
@semantic-release/git11.0.1 · 1×
@semantic-release/github12.0.9 · 1×

Datastores touched

bullmq_testDatabase · 1 repos
mydbDatabase · 1 repos
bullmqDatabase · 1 repos
dbDatabase · 1 repos

For agents

$ claude mcp add bullmq \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page