Skip to content

Commit 3fd8ea8

Browse files
authored
fix: backwards compatible snapshot runStatus to prevent DEQUEUED status from breaking older runners (#2335)
1 parent c576e98 commit 3fd8ea8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal-packages/run-engine/src/engine/systems/executionSnapshotSystem.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ export class ExecutionSnapshotSystem {
277277
description: snapshot.description,
278278
previousSnapshotId,
279279
runId: run.id,
280-
runStatus: run.status,
280+
// We can't set the runStatus to DEQUEUED because it will break older runners
281+
runStatus: run.status === "DEQUEUED" ? "PENDING" : run.status,
281282
attemptNumber: run.attemptNumber ?? undefined,
282283
batchId,
283284
environmentId,

0 commit comments

Comments
 (0)