bullmq
BullMQ for Python
What it is and what it does
BullMQ for Python is a Redis-backed distributed job queue that ports the core functionality of the NodeJS BullMQ library. It lets you enqueue jobs with metadata (priority, delay, deduplication settings), process them with workers, and track progress and events. Jobs can be regular, delayed, prioritized, deduplicated, or repeatable via a job scheduler. The library also supports job retries with backoff, per-job cancellation via cooperative abort, global concurrency limits, and a lock manager for batched operations.
You interact with it through a Queue object to add jobs and a Worker to process them. Because both the Python and NodeJS versions use the same underlying Lua scripts in Redis, queues created by one language can be consumed by the other—useful for polyglot systems. The library is in Alpha status, meaning the API may change, but it has active maintenance and a large user base.
Use it for:
- Background job processing: offload long-running tasks (email, image processing) from your web request handler.
- Job scheduling: use JobScheduler to run repeatable tasks at intervals, replacing cron for application-level scheduling.
- Priority-based task dispatch: ensure critical jobs (payment processing, alerts) run before lower-priority work.
- Deduplication and throttling: prevent duplicate work by deduplicating jobs or throttling submissions over a time window.
- Polyglot job queues: share a single queue between Python and NodeJS services using the same Lua-backed semantics.
- Distributed rate limiting: enforce global concurrency and rate limits across multiple workers or services.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
BullMQ for Python is a Redis-backed job queue library that lets you add, schedule, and process jobs with features like priority, deduplication, retries, and worker management.
Yes, if you need a Redis-backed job queue with priority, scheduling, and worker management in Python. The active maintenance, low install friction, permissive MIT license, and interoperability with NodeJS BullMQ make it a solid choice. The Alpha status means the API may shift—acceptable for new projects but worth monitoring if you depend on stability. No known security vulnerabilities.
Install
bullmq on PyPI
pip
pip install bullmquv
uv add bullmqpoetry
poetry add bullmqInstalling bullmq
Before you install
Low friction installation with four runtime dependencies (redis, msgpack, semver, croniter). Active maintenance—last commit 2026-08-14, released 2026-08-05. Alpha status (Development Status :: 3) means the API may shift, but the project has 9296 GitHub stars and steady downloads.
License in practice
MIT license (permissive). You can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install bullmq
from bullmq import Queue
queue = Queue('my-queue')
job = await queue.add('my-job', {'foo': 'bar'})
Requires Python >= 3.10.0 and a running Redis server. Async/await syntax requires an async context.
Verify before relying
- Whether the library supports all NodeJS BullMQ features or if gaps beyond those listed in the description exist.
- Performance characteristics and throughput limits for high-volume job processing.
- Compatibility guarantees between Python and NodeJS queue versions using the same Lua scripts.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — redis, msgpack, semver, croniter |
| Maintenance | actively maintained — 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,276,583/month — #3,171 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: bullmq-3.0.4-py3-none-any.whl
Keywords: python, bullmq, queues
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
rqRQ is a Python library for queueing jobs and…
permissive · top 5,000 on PyPI
arqarq provides a job queue system for Python that…
permissive · top 5,000 on PyPI
rq-schedulerAdds job scheduling capabilities to RQ (Redis…
permissive · top 15,000 on PyPI
saqSAQ is an async job queue framework that runs…
permissive · top 15,000 on PyPI
pgqueuerPgQueuer turns PostgreSQL into a background job…
permissive · top 15,000 on PyPI
queuelibQueuelib provides in-memory and disk-persisted…
permissive · top 5,000 on PyPI
django-rqDjango-RQ integrates RQ (Redis Queue) with…
permissive · top 5,000 on PyPI
taskiq-aio-pikaProvides a RabbitMQ broker implementation for…
permissive · top 15,000 on PyPI
dramatiqDramatiq is a distributed task processing…
copyleft · top 5,000 on PyPI
rq-dashboardA Flask-based web dashboard for monitoring RQ…
permissive · top 15,000 on PyPI