chore: workflow internals improvementss (#9455)

This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-10-10 09:11:56 +02:00
1 parent 1b9379be62
commit 34d57870ad
26 files changed
+354 -206

No files matched your search

@@ -60,8 +60,7 @@ export default class RedisEventBusService extends AbstractEventBusModuleService
})
// Register our worker to handle emit calls
const shouldStartWorker = moduleDeclaration.worker_mode !== "server"
if (shouldStartWorker) {
if (this.isWorkerMode) {
this.bullWorker_ = new Worker(
moduleOptions.queueName ?? "events-queue",
this.worker_,
@@ -116,7 +115,7 @@ export default class RedisEventBusService extends AbstractEventBusModuleService
// options for a particular event
...eventData.options,
},
}
} as any
})
}