Repository navigation
feat: gate worker job admission on disk headroom - #191
Merged
Merged
Conversation
Sample Docker, workspace, and spool filesystem headroom. Advertise zero capacity, skip new acquisitions, and suppress runner creation during pressure while handling active-job callbacks. Restore admission with hysteresis and expose local disk status.
Nickfost
marked this pull request as ready for review
November 24, 2026 09:41
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
The worker now advertises zero capacity, skips new offers, and stops creating runners when any monitored filesystem reaches 90% unavailable space or falls below 10 GiB available. It still processes active-job starts, completions, and cleanup. Admission resumes when every filesystem is at most 85% used with at least 15 GiB available. The same percentage thresholds cover inode use.
The existing capacity timer measures Docker storage, the runner workspace, and the Docker upload spool while the worker is idle or busy. Local controller status reports
low_diskwith the triggering limit, capacity, and available bytes. The manager prepares a dedicated read-only export for the controller.Refs #166. Adoption guidance is tracked in template #49.
Verification
6a05267. This branch now includesmainat461a707, so the hosted suite and Codex review will run on the new head. The isolated installer and proxy-health fixtures reproduced and verified the correction for the Compose test environment. The correction keeps the protected export ownership and mode checks.Before rollout
Confirm that zero-capacity polls prevent new direct assignments to prewarmed runners and that GitHub re-offers jobs whose messages were acknowledged during the block. The SDK documents unacknowledged message replay. The contract for acknowledged offers remains open. Upstream discussion
Documentation
The disk admission guide covers thresholds, local status, storage layout, manager staging, rollback, and the remaining service checks. Updated the controller design, architecture, host enrollment, and monitoring guides and linked the earlier observation record.