@hastehaul/common 2.5.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -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.
|
@@ -20,5 +20,5 @@ export declare abstract class AbstractWorker {
|
|
20
20
|
* @param {Job} job - The job object representing the job to be processed.
|
21
21
|
* @returns {Promise<void>} - A Promise that resolves when the job processing is completed successfully.
|
22
22
|
*/
|
23
|
-
protected abstract process(job: Job): Promise<
|
23
|
+
protected abstract process(job: Job): Promise<any>;
|
24
24
|
}
|