Questions tagged [bull.js]

Premium Queue package for handling jobs and messages in NodeJS.

31 questions
2
votes
1 answer

How to return a generated image with Bull.js queue?

My use case is this: I want to create screenshots of parts of a page. For technical reasons, it cannot be done on the client-side (see related question below) but needs puppeteer on the server. As I'm running this on Heroku, I have the additional…
jfix
  • 477
  • 4
  • 21
2
votes
1 answer

Schedule Repeatable Jobs using bull.js By providing time in repeat rules

I'm currently using bull js to create an api that schedules a job according to inputted time. currently I'm able to do this using crone expression if the time input is in the format of 'YYYY-MM-DD HH:mm". The only problem is that if I want to…
sammy mbugua
  • 81
  • 2
  • 10
2
votes
3 answers

Bull: Cannot define a handler more than once per Queue instance

I'm using bull with node.js. I was thinking of using a master-slave model, where one thread puts stuff in the queue, and another just pulls it from the queue. However, when my worker threads try to pull from the queue, they get this error: Error:…
Gakho
  • 603
  • 1
  • 9
  • 18
1
vote
1 answer

NodeJS Bull Stop the queue jobs on a job failed

I have multiple Bull Queues in my NodeJS project which will run if previous queue is executed successfully. I'm trying to verify some email addresses here. Check the Email format (formatQueue) Email Existence using npm email-existence package…
rakcode
  • 2,256
  • 4
  • 19
  • 44
1
vote
3 answers

bull task in sailsjs not working?

Well I (naively) tried to get bull working in a sails application: ultimatelly I wish to have a queue to which I can add/remove/check tasks based on incoming routes. Now as I understand sails to create a queueing system that works globaly I would…
paul23
  • 8,799
  • 12
  • 66
  • 149
0
votes
0 answers

How to handle repeatable jobs in Bull.js when the queue is paused

I am using Bull.js with repeatable jobs. I want to be able to pause the queue while I'm updating the server. I was planning to use pause method of Bull.js but what I realized is that once the queue is unpaused Bull.js only runs the repeatable jobs…
Ismail Gül
  • 119
  • 12
0
votes
1 answer

Bull.js is not getting the exported function in NestJS with webpack

My NestJS application compiles my Typescript worker async function bootstrap(job: Job, done: DoneCallback) { //... } export default bootstrap; into a js file with following line: exports["default"] = bootstrap; But Bull.js is throwing the…
Nícolas Amarante
  • 165
  • 1
  • 1
  • 7
0
votes
1 answer

Remove duplicated outputs from BullJS job queue

I am running a nodejs/express API server on Heroku (my web server dyno) that queues up jobs in Redis that are managed by BullJS on a worker server (a separate worker dyno) These jobs can take a while (up to 2 hours). However, I have noticed that…
user2497586
0
votes
1 answer

Is there a way to pass command line arguments to node process while loading environment to child process for a job in bull?

I need to pass command-line arguments or params or execargv which should come in process params while loading environment for a child process which will be launched by a bull for process a job. is it possible? if yes is there any way to do it? I can…
Stephen
  • 834
  • 7
  • 13
0
votes
2 answers

Bull's processor in NestJS never handled queued jobs

I am trying to send DTOs to my Redis queue with a Bull framework and handle these DTOs in processors. Sometimes job pass to processor (1 of 100) but most of the time failed with error: job stalled more than allowable limit and I have no idea how to…
Denis Stephanov
  • 4,563
  • 24
  • 78
  • 174
0
votes
1 answer

Nodejs global variable not working in separate process

I am using queues with bullJS library. In entry point, I have defined global.db variable which I can use everywhere. On bull's documentation I read separate processes are better so I created a new separate process in a file and I'm…
0
votes
1 answer

Add additional data to a task

Newbee on bull.js, I'd like to know if it's possible to add additional parameters to a job. I'd like add a companyId field to be able to request all jobs for a company for monitoring tasks by company. Is there a way to make a things like…
0
votes
1 answer

Trying to install bull-repl on Ubuntu 20.4, getting strange npm error

I am trying to install bull-repl package on my Ubuntu 20.4 system via sudo npm i bull-repl -g But I keep getting following error: > node-jq@1.11.2 postinstall /usr/lib/node_modules/bull-repl/node_modules/node-jq > npm run install-binary npm ERR!…
Torsten Barthel
  • 3,059
  • 1
  • 26
  • 22
0
votes
1 answer

Start Bull Queue Process on Startup of Application

I am creating queue and adding job inside my API. I am also starting processing my job on API call. const newQueue = createQueue(queueName, opts); newQueue.add('JokesJob', data, options); newQueue.process('JokesJob', async (job) => { …
xMayank
  • 1,875
  • 2
  • 5
  • 19
0
votes
1 answer

How to do infinite attempts in Bull Queue?

I am trying to send a user email after he registeres on my website My current code looks like this const data = { from: 'no-reply@test.com', to: req.user.email, subject: 'Please reset your Test Account Password', text: …
PirateApp
  • 5,433
  • 4
  • 57
  • 90