fix(orchestration): avoid retry when finished (#10913)
This commit is contained in:
committed by
GitHub
parent
a126f40bbe
commit
01acf9e700
5
.changeset/chilled-schools-collect.md
Normal file
5
.changeset/chilled-schools-collect.md
Normal 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,
|
||||
|
||||
Reference in New Issue
Block a user