Skip to content

Commit 30f3d7f

Browse files
committed
clear replay state between attempts
1 parent 926a6ff commit 30f3d7f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/cli-v3/src/entryPoints/deploy-run-controller.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,18 @@ class ProdWorker {
371371
async #prepareForRetry() {
372372
// Clear state for retrying
373373
this.paused = false;
374+
this.nextResumeAfter = undefined;
374375
this.waitForPostStart = false;
375376
this.executing = false;
376377
this.attemptFriendlyId = undefined;
377378
this.attemptNumber = undefined;
379+
380+
// Clear replay state
381+
this.waitForTaskReplay = undefined;
382+
this.waitForBatchReplay = undefined;
383+
this.readyForLazyAttemptReplay = undefined;
384+
this.durationResumeFallback = undefined;
385+
this.readyForResumeReplay = undefined;
378386
}
379387

380388
// MARK: CHECKPOINT PREP

0 commit comments

Comments
 (0)