feat: Add support for scheduled workflows (#7651)

We still need to:
But wanted to open the PR for early feedback on the approach
This commit is contained in:
Stevche Radevski
2024-06-10 16:49:52 +02:00
committed by GitHub
parent 7f53fe06b6
commit 69410162f6
20 changed files with 465 additions and 44 deletions

View File

@@ -3,6 +3,7 @@ import {
DistributedTransactionEvents,
TransactionHandlerType,
TransactionStep,
WorkflowScheduler,
} from "@medusajs/orchestration"
import {
ContainerLike,
@@ -110,6 +111,7 @@ export class WorkflowOrchestratorService {
if (!dataLoaderOnly) {
DistributedTransaction.setStorage(redisDistributedTransactionStorage)
WorkflowScheduler.setStorage(redisDistributedTransactionStorage)
}
this.redisDistributedTransactionStorage_ =