{
 "kind": "tool",
 "slug": "bullmq",
 "path": "tools/bullmq/",
 "name": "BullMQ",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Jobs, queues and workflows",
   "tools/jobs-workflows/"
  ]
 ],
 "lead": "Fast, reliable Redis-backed queue for jobs and messages in Node.js.",
 "chips": [
  {
   "label": "Jobs, queues and workflows",
   "path": "tools/jobs-workflows/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install bullmq"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/taskforcesh/bullmq"
  },
  {
   "label": "Website",
   "href": "https://bullmq.io/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/taskforcesh/bullmq"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 19, 2026. ",
   "src": "https://github.com/taskforcesh/bullmq"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "35 projects",
   "status": "info",
   "sub": "#5 of 48 in its category",
   "note": "Dependency in 35 public GitHub projects set up for AI coding agents that we scanned (0.6%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://bullmq.io/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What BullMQ does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "BullMQ popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "67",
       "of": "/ 100",
       "l": "Gid Score, #529 overall"
      },
      {
       "n": "13.9M",
       "l": "downloads a week, npm"
      },
      {
       "n": "9,628",
       "l": "GitHub stars"
      },
      {
       "n": "35",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How BullMQ is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "25 projects, 0.8%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "17 projects, 0.6%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "16 projects, 0.7%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 88.6% of its projects",
       "v": "ioredis",
       "path": "tools/ioredis/"
      },
      {
       "l": "In 74.3% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 57.1% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 65.7% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 71.4% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 97.1% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 42.9% of its projects",
       "v": "pg",
       "path": "tools/pg/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "Express",
       "path": "tools/express/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "BullMQ in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "One queue, several languages",
       "v": "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."
      },
      {
       "l": "A PostgreSQL backend you can query with SQL",
       "v": "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."
      },
      {
       "l": "Job trees across queues with FlowProducer",
       "v": "<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>."
      },
      {
       "l": "Schedulers that act as job factories",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Feature support differs by language",
       "v": "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."
      },
      {
       "l": "CPU-heavy work causes false stalls",
       "v": "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>."
      },
      {
       "l": "Queue identity is easy to get wrong",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Add a job, process it, listen for completion"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Ts",
       "code": "import { Queue } from 'bullmq';\n\nconst queue = new Queue('Paint');\n\nqueue.add('cars', { color: 'blue' });\n\nimport { Worker } from 'bullmq';\n\nconst worker = new Worker('Paint', async job => {\n  if (job.name === 'cars') {\n    await paintCar(job.data.color);\n  }\n});\n\nimport { QueueEvents } from 'bullmq';\n\nconst queueEvents = new QueueEvents('Paint');\n\nqueueEvents.on('completed', ({ jobId }) => {\n  console.log('done painting');\n});"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about BullMQ",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Packages around it",
       "items": [
        "ioredis: Redis client",
        "dotenv: .env config loader",
        "tsx: Run TypeScript directly",
        "vitest: Test runner",
        "zod: Schema validation",
        "typescript: Typed JavaScript"
       ]
      },
      {
       "title": "More in Jobs, queues and workflows",
       "path": "tools/jobs-workflows/",
       "items": [
        {
         "text": "APScheduler",
         "path": "tools/apscheduler/"
        },
        {
         "text": "Croner",
         "path": "tools/croner/"
        },
        {
         "text": "node-cron",
         "path": "tools/node-cron/"
        },
        {
         "text": "Celery",
         "path": "tools/celery/"
        },
        {
         "text": "croniter",
         "path": "tools/croniter/"
        },
        {
         "text": "Inngest",
         "path": "tools/inngest/"
        },
        {
         "text": "schedule",
         "path": "tools/schedule/"
        },
        {
         "text": "Socket.IO Redis Adapter",
         "path": "tools/socket-io-redis-adapter/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "BullMQ",
       "me": true,
       "facts": [
        "MIT",
        "Gid 67",
        "13.9M/wk"
       ]
      },
      {
       "name": "Bull",
       "why": "Redis-based job queue for Node.js.",
       "path": "tools/bull/",
       "facts": [
        "MIT",
        "Gid 56",
        "2.1M/wk"
       ]
      },
      {
       "name": "pg-boss",
       "why": "Job queue for Node.js on PostgreSQL.",
       "path": "tools/pg-boss/",
       "facts": [
        "MIT",
        "Gid 54",
        "5.2M/wk"
       ]
      }
     ],
     "more": "Compare BullMQ with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install bullmq"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## BullMQ\n- 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`).\n- Make every processor code path return or throw, and add timeouts to network calls. A processor that never settles keeps the job active forever.\n- Move CPU-heavy processors to sandboxed processors, or split them with flows, so the worker can keep renewing its lock.\n- On shutdown, handle `SIGTERM` with `await worker.close()` so current jobs finish before exit.\n- On PostgreSQL, run `runMigrations` as a deploy step or pass `migrate: true` on the connection. Otherwise workers fail with `SchemaMigrationRequiredError`.\n- Only read BullMQ's PostgreSQL tables. Change jobs through BullMQ or a dashboard, never with direct SQL writes.\n- When using the node-redis adapter (`createNodeRedisClient`), install `redis` 5.0.0 or newer.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm bullmq"
  ],
  [
   "Category",
   "Jobs, queues and workflows"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v6.7.4, November 11, 2026"
  ],
  [
   "On GitHub since",
   "December 2018"
  ],
  [
   "Gid Score",
   "67.3"
  ],
  [
   "Rank in category",
   "#5 of 48"
  ],
  [
   "GitHub",
   "taskforcesh/bullmq"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [
  "Used by Microsoft, Vendure, Datawrapper, Nest, as listed by the source; we have not checked each one."
 ],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/taskforcesh.png"
}