@hastehaul/common 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Job, Worker } from "bullmq";
|
1
|
+
import { Job, Worker, WorkerOptions } from "bullmq";
|
2
2
|
import { EventEmitter } from 'events';
|
3
3
|
/**
|
4
4
|
* Abstract class representing a worker for processing jobs from a Job Queue.
|
@@ -11,7 +11,7 @@ export declare abstract class AbstractWorker {
|
|
11
11
|
*
|
12
12
|
* @param {string} queueName - The name of the job queue that this worker will process jobs from.
|
13
13
|
*/
|
14
|
-
constructor(queueName: string, useReplicas?: boolean, opts?: WorkerOptions | undefined);
|
14
|
+
constructor(queueName: string, useReplicas?: boolean, opts?: Partial<WorkerOptions> | undefined);
|
15
15
|
/**
|
16
16
|
* Abstract method to process jobs retrieved from the job queue.
|
17
17
|
*
|