Skip to content

Commit e77a8b2

Browse files
1stvampTrigger.dev RepoOps
authored andcommitted
feat(fcrun): stop taking VMs on a node rkvm has gated
Mono-RevId: c95511f730c3b0764c7b56f2afa680dc0b83e637
1 parent 5b12a88 commit e77a8b2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎apps/supervisor/src/workloadManager/runCrd.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3095,6 +3095,12 @@ describe("runnerStartFailure", () => {
30953095
});
30963096
});
30973097

3098+
it("names a cold start whose node takes no new VMs", () => {
3099+
expect(runnerStartFailure(failedRunner("NodeTakesNoNewVMs"))?.outcome.reason).toBe(
3100+
"NodeTakesNoNewVMs"
3101+
);
3102+
});
3103+
30983104
// The restore watch settles a resume; reporting it here as well would requeue it twice.
30993105
it("leaves a resume to the restore watch", () => {
31003106
expect(

‎apps/supervisor/src/workloadManager/runCrd.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ export function startingColdStart(runner: unknown): StartingColdStart | undefine
13431343
}
13441344

13451345
/** Reasons a cold start fails for that another lane may not, so it is moved there. */
1346-
const FALLBACK_START_REASONS = new Set(["TemplateNotFound"]);
1346+
const FALLBACK_START_REASONS = new Set(["TemplateNotFound", "NodeTakesNoNewVMs"]);
13471347

13481348
/** A cold start that failed before its attempt began, with the dequeue it was created for. */
13491349
export type RunnerStartFailure = {

0 commit comments

Comments
 (0)