bullmq

BullMQ - Premium Message Queue for NodeJS based on Redis

Github星跟踪图

🛠 Tutorials

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

Official FrontEnd

Supercharge your queues with a profesional 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

The gist

Install:

$ yarn add bullmq

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, err) => {
  console.error('error painting', err);
});

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

🚀 Sponsor 🚀

RedisGreen

If you need high quality production Redis instances for your BullMQ project, please consider subscribing
to RedisGreen,
leaders in Redis hosting that works perfectly with BullMQ. Use the promo code "BULLMQ" when signing up to help us
sponsor the development of BullMQ!

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.

主要指标

概览
名称与所有者imagej/ImageJ
主编程语言Java
编程语言JavaScript (语言数: 4)
平台
许可证Other
所有者活动
创建于2011-08-01 12:29:11
推送于2025-06-12 16:28:33
最后一次提交2025-06-12 11:26:24
发布数349
最新版本名称v1.54p (发布于 )
第一版名称v1.20 (发布于 )
用户参与
星数658
关注者数49
派生数233
提交数2.6k
已启用问题?
问题数196
打开的问题数69
拉请求数0
打开的拉请求数6
关闭的拉请求数69
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?