Bull is a Node library that implements a fast and robust queue system based on redis. It is the recommended successor to Automattic's deprecated Kue. The next version of Bull, currently in development, is BullMQ.
Questions tagged [bull]
100 questions
0
votes
0 answers
Why cronjobs use 42 as Report progress on a job?
I usually see that in cronjob services like "bull" package they use 42 as their report progress when the job is running.
job.progress(42)
Why? Is there a specific meaning behind it?

Amin Abbasi
- 1
- 1
0
votes
0 answers
Buffer data automatically convert to nested Object in Javascript
Currently, I used bull queue in NodeJs to handle some jobs, and then I passed an object which has the field fileContent type Buffer. But in the job, my buffer was automatically converted to an object like below
{
"type": "Buffer",
"data":…

Nguyễn Xuân Hoàng
- 47
- 1
- 5
0
votes
1 answer
Multi processes consume common Bull queue. How to keep chronological order?
One process is producer of Bull queue(javascript) and 3 processes are consumer of the same queue.
Queued data by the producer process are paired and chronological order.
Each data object is like this : {order:1-1}, {order:1-2}, {order:2-1},…

fbyself2011
- 81
- 2
- 9
0
votes
0 answers
NestJs + Bull jobs don't reach consumers
I'm developing a NestJs service heavily utilizing bull. For quite a while everything was fine. But recently, I got a problem in all hosted environments - no jobs reach consumers. I monitor flow with a bull-monitor. Every job from every queue gets to…

AntoineRNT
- 151
- 1
- 6
0
votes
0 answers
Implement polling with setInterval inside a Bull processor (NestJS)
I'm using NestJs and Bull library to implement a queue. The queue should get a job and then perform a polling to external endpoint. When the desired response is back I want to return it and complete the job.
The problem is the job is marked as…

Or Ben-Yossef
- 399
- 2
- 17
0
votes
0 answers
Job in queue is disappeared
I have a NestJS server.
I am using Bull library in my project.
The problem I'm struggling with is jobs disappearing.
To fix this, I logged all queue event listeners.
like so
@OnQueueCompleted()
async onCompleted(job: Job) {
console.log(`Job…

Kyu
- 37
- 5
0
votes
0 answers
Is it possible to distribute jobs in a Single Queue to multiple nodes in a Redis Cluster?
We are using Bull Queue delayed job feature to create timer for each user to do some specific tasks.
Our use case requires to create one job per user. Running at SCALE, we believe that vertically scaling a single REDIS machine will pose us a…

Mohd Waseem
- 1,244
- 2
- 15
- 36
0
votes
0 answers
Bull dashboard doesnt show failed jobs
The bull dashboard doesnt display the failed jobs ,but just displays count with some pagination

Yashwanth Kata
- 817
- 8
- 21
0
votes
1 answer
How does npm bull reads delayed jobs without using cron?
I was recently looking at npm bull package to use for delayed jobs. I can see that for delayed jobs it is using redis sorted set and mapping the value of the job to a hashset in redis. But I fail to understand how does the process receives the…

isnvi23h4
- 1,910
- 1
- 27
- 45
0
votes
1 answer
finding difficulty in setting up redis for my node.js application
my application connected well with the local machine host using redis but i find difficulties while connecting with cloud hosted redis. I have also tried making redis data base on render and redis entriprise website.
I have tried:
import Redis from…

Mandeep singh
- 1
- 1
0
votes
0 answers
How to handle multiple mongo databases connections
I have a multi tenant application, i.e., each customer has their database.
My stack is NestJS with MongoDB, and to handle HTTP requests to the right database I use the lib nestjs-tenancy, it scopes the connection based in the request subdomain.
But…

Samuel
- 259
- 3
- 15
0
votes
0 answers
OptimalBits/bull : Node.js Queue > Error: Cannot set an undefined handler
I got 2x javascript file index.js and process.js
I tried attaching Event Listeners to process.js like this:
// require("dotenv-safe").config(); // temp removed
// increase the max listeners to get rid of the warning below
//…

yeln
- 462
- 2
- 10
- 23
0
votes
1 answer
Downloading large files from a Google Cloud bucket in a BullMQ worker leads to stalls
I've created a job scheduler/runner using BullMQ. I have a worker that, when handling a job, downloads a given file from a Google Cloud Bucket and then analyzes it.
However, whenever the file to download is very large (>10GB), it can take several…

Rayhan Memon
- 146
- 4
- 18
0
votes
0 answers
Bull queue - ability to mark job as "failed" (depending on result) and then optionally retry manually
I have a queue system that uses Bull (https://optimalbits.github.io/bull/), which receives API requests, and then dispatches them to an ERP system consecutively once each request completes. (e.g. To avoid crashing the ERP system when a user…

Ben in CA
- 688
- 8
- 22
0
votes
1 answer
How to emit an event in express js and handle it in discord.js
I have a simple express.js backend that handles a get request from discord which runs a heavy process in the background using bull and throng.
I got it all working, Discord sends the get request. backend reserves the request and adds it to the job…

Alaa
- 1
- 1