Skip to content

Commit

Permalink
fix(orchestration): avoid retry when finished (#10913)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-r-l-rodrigues authored Jan 10, 2025
1 parent a126f40 commit 01acf9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-schools-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/orchestration": patch
---

fix(orchestration): avoid retry when finished
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 01acf9e

Please sign in to comment.