fix(orchestration): avoid retry when finished (#10913)

This commit is contained in:
Carlos R. L. Rodrigues authored and GitHub committed 2025-01-10 13:12:08 -03:00
1 parent a126f40bbe
commit 01acf9e700
2 files changed
+9

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/orchestration": patch
---
fix(orchestration): avoid retry when finished
@@ -244,6 +244,10 @@ class DistributedTransaction extends EventEmitter {
step: TransactionStep,
interval: number
): Promise<void> {
if (this.hasFinished()) {
return
}
await this.saveCheckpoint()
await DistributedTransaction.keyValueStore.scheduleRetry(
this,