Questions tagged [bull]

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.

100 questions
0
votes
0 answers

Return mongo _id to client after processing in Bull queue

basically what the title says, I'm having trouble with returning the id that mongo database sets into an object because the same has already passed through a bull queue so the "res" object is not available to use. What i want is basically, when you…
Svar
  • 17
  • 3
0
votes
1 answer

How to use Bull, Throng, and Redis with Discord.js

I want to run long "scraping" processes on heroku server using discord as my front interface. I created a discord bot that runs the scraping when a command is used. all is working well. However, I want to use a queue system so that multiple users or…
Alaa
  • 1
  • 1
0
votes
0 answers

How kill a ongoing job (long task function inside queue process) in an bull npm?

How kill a ongoing job Const Queue = require ('bull') Const queue = new Queue(bull) Queue. Process ((job, done)=>{`your text` LongTask(job. Data) // console data for 10 mint )} queue.add('firstData');`hhk` queue.add('SecondData'); Expected : I…
fun gem
  • 1
  • 1
0
votes
0 answers

How to make Bull jobs concurrent

For the context, I'm new to Bull (https://github.com/OptimalBits/bull) and trying to execute a lot of jobs concurrently. But Bull seems it'll wait for one job to complete. Here is my code const Bull = require("bull"); const jobs = new…
thakee nathees
  • 877
  • 1
  • 9
  • 16
0
votes
0 answers

Cannot use Express custom error handling with next() as it is not passed in Bull job

I'm trying to pass next() function to Bull job so I can handle asynchronous error handling with Express. For some reason, it won't get forwarded. This is is the route. data includes domain and next() which get passed to the…
Tajs
  • 521
  • 7
  • 18
0
votes
1 answer

Bull - Triggering multiple functions on a single queue

i would like to create one Bull Queue, and put function in queue? is it possible. for example: I have http request /func1 + params -> start func1(params) http request /func2 + params -> start func2(params) http request /func3 + params -> start…
user1862965
  • 327
  • 3
  • 15
0
votes
0 answers

NodeJs Application to send alerts to users email ID

I'm creating a NodeJs application that sends alerts to a user's email ID when the price of the bitcoin goes above the price specified by the user. For scheduling tasks, I'm using cron. Also, I've used the bull as a message broker. When I'm running…
Sachin
  • 1
  • 1
0
votes
2 answers

how to configure nest/Bull redis connection

I am using BullModule in nest.js. when I connect to a local redis it works: const REDIS = { host: 'localhost', }; @Module({ imports: [ TaskTypesModule, TasksModule, ScheduleModule.forRoot(), BullModule.forRoot({ //…
0
votes
0 answers

How to push Queue object to array | bull framework | node js

In the following code sample I am trying to push sampleQueue1, sampleQueue2, sampleQueue3 but I am getting error, const Queue = require('bull'); const sampleQueue1 = new Queue('sample1', 'redis://127.0.0.1:6379'); const sampleQueue2 = new…
sel
  • 169
  • 5
  • 13
0
votes
1 answer

OnQueueError not firing on task queue: NestJS + Bull

I've noticed that bull does not print exceptions to the console by default. To get around this I want to catch errors with the @OnQuerueError decorator and print them to the console (for now). My current implementation does not work and I don't…
Xen_mar
  • 8,330
  • 11
  • 51
  • 74
0
votes
1 answer

Node cron jobs not processing multiple jobs

I'm using bull to run cron jobs with nodejs. This is my file, when debugging I only see first test job running every 2 minutes, but I dont see the other one. So here in my case I'm always getting test1 printed and never goes to the other job. Can…
WebDev
  • 151
  • 1
  • 1
  • 8
0
votes
0 answers

Bull queue is getting added but never completed

I'm working on an express app that uses several Bull queues in production. We created a wrapper around BullQueue (I added a stripped down version of it down below) import logger from '~/libs/logger' import BullQueue from 'bull' import Redis from…
ilrock
  • 573
  • 8
  • 24
0
votes
1 answer

Bull generate 2000 files Memory leak node.js

I currently have a problem generating two thousand pdf's using node.js and bull. Indeed, I manage to generate about 400 pdf. Then I got this error message: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap…
SLSofiane
  • 49
  • 5
0
votes
1 answer

Nest.js on Cloud Run running scheduled jobs with bull throws random connection errors?

I'm trying to perform 3rd party API requests for fetching loads of paginated data (an array of ~16k objects with each object having ~25 key/value pairs), i thought i was getting rate limited but the requests run fine locally and in production as…
0
votes
1 answer

Get the iteration position in repeatable jobs in bulljs

I'd like to perform some actions in a certain position within the repeatable job callback for example const Bull = require('bull'); const queue = new Bull('payment'); // should repeat this task every 5 minutes , 24 times queue.add('trackPayment' ,…