bull-queue

NodeJS Bull Stop the queue jobs on a job failed

流过昼夜 提交于 2020-05-17 06:17:08
问题 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 (existenceQueue) The formatQueue is less time taking process, which wil run the RegEx and validate the Email format. but The email-existence package takes around 5-10 seconds to complete. formatQueue and existenceQueue works properly if there are less

NodeJS Bull Stop the queue jobs on a job failed

我的梦境 提交于 2020-05-17 06:17:04
问题 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 (existenceQueue) The formatQueue is less time taking process, which wil run the RegEx and validate the Email format. but The email-existence package takes around 5-10 seconds to complete. formatQueue and existenceQueue works properly if there are less

Bull queue: When a job fails, how to stop queue from processing remaining jobs?

南笙酒味 提交于 2020-05-14 12:53:41
问题 I am using bull queue to process some jobs. In the current scenario each job is some kind of an operation. So whenever an operation(job) among a list of operations in the queue fails, queue has to stop processing the remaining jobs(operations). What have I tried so far? So i tried to pause the queue when a particular job fails. Next the queue is resumed when it drains. Now when it is resumed the queue does not start from the failed job instead picks up the next job. var Queue = require('bull'