Skip to content

Commit 188a023

Browse files
committed
restore detection was moved into snapshot manager
1 parent 1ce6ddc commit 188a023

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

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

+1-18
Original file line numberDiff line numberDiff line change
@@ -835,9 +835,7 @@ export class RunExecution {
835835
/**
836836
* Processes env overrides from the metadata service. Generally called when we're resuming from a suspended state.
837837
*/
838-
public async processEnvOverrides(
839-
reason?: string
840-
): Promise<{ executionWasRestored: boolean; overrides: Metadata } | null> {
838+
public async processEnvOverrides(reason?: string): Promise<{ overrides: Metadata } | null> {
841839
if (!this.metadataClient) {
842840
return null;
843841
}
@@ -866,20 +864,6 @@ export class RunExecution {
866864
currentEnv: this.env.raw,
867865
});
868866

869-
let executionWasRestored = false;
870-
871-
if (this.env.TRIGGER_RUNNER_ID !== overrides.TRIGGER_RUNNER_ID) {
872-
this.sendDebugLog("[override] runner ID mismatch, execution was restored", {
873-
reason,
874-
currentRunnerId: this.env.TRIGGER_RUNNER_ID,
875-
incomingRunnerId: overrides.TRIGGER_RUNNER_ID,
876-
});
877-
878-
// we should keep a list of restored snapshots
879-
880-
executionWasRestored = true;
881-
}
882-
883867
// Override the env with the new values
884868
this.env.override(overrides);
885869

@@ -899,7 +883,6 @@ export class RunExecution {
899883
}
900884

901885
return {
902-
executionWasRestored,
903886
overrides,
904887
};
905888
}

0 commit comments

Comments
 (0)