bull.js

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

How to merge namespace has no exported interface in TypeScript

会有一股神秘感。 提交于 2020-05-13 02:38:03
问题 I am using the queue lib Bull in TypeScript. Its definition is: node_modules/@types/bull/index.d.ts declare const Bull: { (queueName: string, opts?: Bull.QueueOptions): Bull.Queue; // something like above }; declare namespace Bull: { interface Queue {} interface Job {} // some other non-exported interfaces } export = Bull I want to merge the namespace Bull in my library and use it in another app. node_modules/myLib/index.d.ts import { Queue } from 'bull' declare namespace Bull: { export