fix(orchestration): avoid retry when finished (#10913)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/orchestration": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(orchestration): avoid retry when finished
|
||||||
@@ -244,6 +244,10 @@ class DistributedTransaction extends EventEmitter {
|
|||||||
step: TransactionStep,
|
step: TransactionStep,
|
||||||
interval: number
|
interval: number
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
|
if (this.hasFinished()) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
await this.saveCheckpoint()
|
await this.saveCheckpoint()
|
||||||
await DistributedTransaction.keyValueStore.scheduleRetry(
|
await DistributedTransaction.keyValueStore.scheduleRetry(
|
||||||
this,
|
this,
|
||||||
|
|||||||
Reference in New Issue
Block a user