@hastehaul/common 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,9 @@
|
|
1
1
|
import { Job, Worker } from "bullmq";
|
2
|
+
export type JobT = {
|
3
|
+
job: Job;
|
4
|
+
};
|
2
5
|
export declare abstract class AbstractWorker {
|
3
6
|
protected worker: Worker;
|
4
7
|
constructor(queueName: string);
|
5
|
-
protected abstract process(job:
|
8
|
+
protected abstract process(job: JobT['job']): Promise<void>;
|
6
9
|
}
|