fix: Use a global reference to distributed transaction and scheduler (#8462)

* fix: Add storage cleanup on scheduled jobs

* fix: Use a global reference to distributed transaction and scheduler classes
This commit is contained in:
Stevche Radevski
2024-08-06 14:14:51 +02:00
committed by GitHub
parent c870302400
commit 4155d0354f
16 changed files with 121 additions and 88 deletions

View File

@@ -1,5 +1,6 @@
import {
DistributedTransaction,
DistributedTransactionType,
DistributedTransactionEvents,
TransactionHandlerType,
TransactionStep,
@@ -221,7 +222,7 @@ export class WorkflowOrchestratorService {
transactionId: string,
options?: WorkflowOrchestratorRunOptions<undefined>,
@MedusaContext() sharedContext: Context = {}
): Promise<DistributedTransaction> {
): Promise<DistributedTransactionType> {
let { context, container } = options ?? {}
if (!workflowId) {