Skip to content

Commit 59d9784

Browse files
committed
detect restore after failed snapshot fetch
1 parent b09178a commit 59d9784

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/cli-v3/src/entryPoints/managed/execution.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ export class RunExecution {
252252
this.snapshotPoller?.updateSnapshotId(snapshot.friendlyId);
253253
this.snapshotPoller?.resetCurrentInterval();
254254

255-
await this.processEnvOverrides("snapshot change");
256-
257255
switch (snapshot.executionStatus) {
258256
case "PENDING_CANCEL": {
259257
this.sendDebugLog("run was cancelled", snapshotMetadata);
@@ -1102,6 +1100,9 @@ export class RunExecution {
11021100
source,
11031101
error: response.error,
11041102
});
1103+
1104+
await this.processEnvOverrides("snapshots since error");
1105+
11051106
return;
11061107
}
11071108

0 commit comments

Comments
 (0)