fix(): Workflow engine redis worker instance in worker mode (#14099)
* fix(): Workflow engine redis worker instance in worker mode * Create wicked-tips-buy.md
This commit is contained in:
1 parent
f67bfb9f92
commit
6c3ec528f1
2 files changed
+6
-1
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/workflow-engine-redis": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(): Workflow engine redis worker instance in worker mode
|
||||||
@@ -145,6 +145,7 @@ export class RedisDistributedTransactionStorage
|
|||||||
// Remove all repeatable jobs from the old queue since now we have a queue dedicated to scheduled jobs
|
// Remove all repeatable jobs from the old queue since now we have a queue dedicated to scheduled jobs
|
||||||
await this.removeAllRepeatableJobs(this.queue)
|
await this.removeAllRepeatableJobs(this.queue)
|
||||||
|
|
||||||
|
if (this.#isWorkerMode) {
|
||||||
this.worker = new Worker(
|
this.worker = new Worker(
|
||||||
this.queueName,
|
this.queueName,
|
||||||
async (job) => {
|
async (job) => {
|
||||||
@@ -175,7 +176,6 @@ export class RedisDistributedTransactionStorage
|
|||||||
workerOptions
|
workerOptions
|
||||||
)
|
)
|
||||||
|
|
||||||
if (this.#isWorkerMode) {
|
|
||||||
this.jobWorker = new Worker(
|
this.jobWorker = new Worker(
|
||||||
this.jobQueueName,
|
this.jobQueueName,
|
||||||
async (job) => {
|
async (job) => {
|
||||||
|
|||||||
Reference in new issue
Block a user