Repository navigation
fix(nos-runner): restart a slot whose runner waits too long for a job - #303
Merged
smartwatermelon-agent[bot] merged 2 commits intoNov 23, 2026
Merged
Conversation
added 2 commits
November 23, 2026 15:08
A JIT runner that waits idle for hours goes stale and stops getting jobs. The supervisor now deletes the runner and restarts the slot once it has waited NOS_IDLE_MAX_S (default 3600 s, 0 disables). It checks that GitHub reports the runner idle, deletes before stopping so a busy runner (HTTP 422) keeps its VM, and restarts one slot per pass. Advances #297
After a good idle restart the cached container ls still listed the stopped VM, so an empty slot in the same pass saw too many VMs and waited a pass. Refresh the list as reconcile does. Also record the remaining busy-assignment race in the comment. Advances #297
smartwatermelon-agent
Bot
requested a review
from twistedmelonman
as a code owner
November 23, 2026 23:31
smartwatermelon-agent
Bot
deleted the
claude/fix-nos-idle-restart-56536f08
branch
November 23, 2026 23:36
This was referenced Nov 23, 2026
5 tasks
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.
A NOS runner slot whose JIT runner waits idle for hours goes stale and stops getting jobs (the 2026-11-20 hang lasted 51 h). The supervisor now restarts such a slot.
restart_stale_slots, called afterderegister_pending. For a slot older thanNOS_IDLE_MAX_S(default 3600 s;0disables) whose runner GitHub reports idle, it deletes the runner, then stops the VM. A failed or unreadable busy check counts as busy.dropped-Nmarker for a later pass.Tests: 11 new
idle_restart_*cases inscripts/nos-runner/tests/test-supervisor.sh, including the 422 case.run-tests.shpasses, and shellcheck -S info is clean.The live proof on MIMOLETTE follows after merge, and it closes the issue.
Advances #297