Skip to content

Commit

Permalink
fix(orchestration): avoid retry when finished
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-r-l-rodrigues committed Jan 10, 2025
1 parent 8650e61 commit 8b14fe6
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 @@ -248,6 +248,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 8b14fe6

Please sign in to comment.