Repository navigation
A stopped box holds only its disk, not its whole run - #101
Merged
Merged
Conversation
Production, 2026-11-20: box sh41 was stopped by the network outage ("the runner stopped reporting") and kept its
week's budget hold, $23.77, all its project had left. The project's next job and box waited for hours with
"Waiting for budget ... $0.00 is free" while the stopped box spent $0.0088/h on its disk.
- Scheduler: a stopped box that isn't resuming holds what it spent plus its disk until box_destroy_hours
(compute_jobs.stopped_box_hold_cents). Existing stopped boxes are trimmed on the next pass.
- resume_box: running again needs an hour's budget free (under the project's row lock) and takes its run's hold
back; when the project's other jobs hold too much, it refuses with what is free.
- docs/compute/scheduler.md says so. Two tests in tests/compute/test_boxes.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Production 2026-11-20: stopped box sh41 (stopped by the outage) kept its whole run's hold, $23.77, all of "Small memory LLM"'s budget, so sh41-job3 and box fdv waited with "$0.00 is free".
box_destroy_hours. Existing stopped boxes are trimmed on the next scheduler pass.resume_boxneeds an hour's budget free and takes the run's hold back, or refuses and says what is free.Full suite passes locally; two new tests in
tests/compute/test_boxes.py.🤖 Generated with Claude Code