Skip to content

A stopped box holds only its disk, not its whole run - #101

Merged
Adambomb210 merged 1 commit into
mainfrom
claude/stopped-box-hold
Nov 25, 2026
Merged

Adambomb210 merged 1 commit into
mainfrom
claude/stopped-box-hold

Conversation

@Adambomb210

Copy link
Copy Markdown
Collaborator

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".

  • A stopped box that isn't resuming now holds its spend plus its disk until box_destroy_hours. Existing stopped boxes are trimmed on the next scheduler pass.
  • resume_box needs 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

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>
@Adambomb210
Adambomb210 merged commit c49663c into main Nov 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant