Repository navigation
fix(swm-macos-runner): end a runner that waits too long for a job - #311
Merged
smartwatermelon-agent[bot] merged 2 commits intoNov 24, 2026
Merged
Conversation
added 2 commits
November 23, 2026 19:07
A JIT runner that gets no job now ends after SWM_IDLE_MAX_S (default 3600 s, 0 disables) from its handoff, instead of only at SWM_JOB_MAX_S (6 h). bounded_check makes the same DELETE as the update-pending path, on the same SWM_UPDATE_IDLE_CHECK_S cadence. A 2xx ends the VM and is not counted as a fail. A 422 (busy) or 404 keeps the VM; the refusal is logged once per runner. A pending update takes precedence. The runbook lists the new log lines. Advances #297
A value such as 1h turned the idle limit off with no log line. The supervisor now logs it at each JIT handoff. install.sh already refuses such a value in the env file, so this covers a direct override only. Advances #297
smartwatermelon-agent
Bot
requested a review
from twistedmelonman
as a code owner
November 24, 2026 03:18
smartwatermelon-agent
Bot
deleted the
claude/feat-swm-idle-restart-56536f08
branch
November 24, 2026 03:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 2 Task 4 of the fleet runner rollout. The macOS supervisor now ends a JIT runner that has waited for a job for
SWM_IDLE_MAX_S(default 3600 s,0disables). This is dev-env#297 for the macOS pool.SWM_UPDATE_IDLE_CHECK_Scadence (300 s), so setting that to 0 also turns idle-max off. The runbook says so.SWM_IDLE_MAX_Sturns the limit off, and that is logged.Tests: 8 new cases in
test-supervisor.sh; the existing cases are unedited and pass. Shellcheck is clean.Known, not changed here: the worst-case shutdown during an in-flight check is about 330 s, over the plist's
ExitTimeOutof 300 s. The same window already exists on the update-pending path onmain, so it gets its own issue.The updater installs this on MIMOLETTE after merge. Live proof is part 2 Task 7.
Advances #297