Skip to main content

Install via pip

BullMQ is available as a Python package on PyPI and can be installed using pip:

Requirements

  • Python: 3.10 or higher
  • Redis: 5.0 or higher (6.2+ recommended for best performance)

Dependencies

The package automatically installs the following dependencies:
  • redis (6.4.0) - Python Redis client
  • msgpack (1.1.2) - MessagePack serialization
  • semver (3.0.4) - Semantic versioning utilities

Development Installation

If you want to contribute to BullMQ Python or install from source:

Verify Installation

You can verify the installation by importing the package:

Redis Setup

BullMQ requires a Redis server. You can:

Run Redis Locally

Use a Managed Redis Service

For production, consider using a managed Redis service:

Connection Configuration

When creating a Queue or Worker, you can specify Redis connection details:

Common Issues

Binary Response Warnings

If you see warnings about binary responses, ensure your Redis client is configured with decode_responses=True:
If Redis responses are in binary format, pass the decode_responses=True option. See the redis-py documentation for more details.

Connection Errors

If you can’t connect to Redis:
  1. Verify Redis is running: redis-cli ping (should return PONG)
  2. Check your connection string has the correct host, port, and credentials
  3. Ensure your firewall allows connections to the Redis port (default: 6379)

Next Steps

Usage Guide

Learn how to create queues and workers