Nick: bull mq

This commit is contained in:
Nicolas
2024-07-30 13:27:23 -04:00
parent 46bcbd931f
commit 7e002a8b06
16 changed files with 330 additions and 99 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { Job, Queue } from "bull";
import { Job, Queue } from "bullmq";
import {
getWebScraperQueue,
} from "./queue-service";
@@ -10,7 +10,7 @@ export async function addWebScraperJob(
options: any = {},
jobId: string = uuidv4(),
): Promise<Job> {
return await getWebScraperQueue().add(webScraperOptions, {
return await getWebScraperQueue().add(jobId, webScraperOptions, {
...options,
jobId,
});