Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(bullmq): duplicate redis connection for QueueEvents

Gergő Móriczd036738da05b
diff --git a/apps/api/src/services/queue-service.ts b/apps/api/src/services/queue-service.ts
index b13489a68..2e6d75624 100644
--- a/apps/api/src/services/queue-service.ts
+++ b/apps/api/src/services/queue-service.ts
@@ -37,4 +37,4 @@ export function getScrapeQueue() {
import { QueueEvents } from 'bullmq';
-export const scrapeQueueEvents = new QueueEvents(scrapeQueueName, { connection: redisConnection });
\ No newline at end of file
+export const scrapeQueueEvents = new QueueEvents(scrapeQueueName, { connection: redisConnection.duplicate() });
\ No newline at end of file