Introduction
BullMQ is now also available as an experimental python package.
Last updated
Was this helpful?
BullMQ is now also available as an experimental python package.
Last updated
Was this helpful?
BullMQ is delivered as a pip package and can thus be installed using pip:
BullMQ uses in order to implement concurrency and provide efficient processing of jobs.
You can add jobs to a queue like this, assuming you have a Redis host running locally:
In order to consume the jobs from the queue you need to use the Worker
class, providing a "processor" function that will consume the jobs. As soon as the worker is instantiated it will start consuming jobs:
If Redis responses are in binary format, you should pass (decode_responses)[https://redis-py.readthedocs.io/en/latest/examples/connection_examples.html#By-default-Redis-return-binary-responses,-to-decode-them-use-decode_responses=True] option as True.