Skip to content

Stop accepting jobs when a worker is low on disk space #166

Open

Description

@Nickfost

Feature request

Prevent a worker from accepting new jobs when a monitored workspace or Docker filesystem reaches 90% usage. Also account for absolute free space; determine an appropriate minimum.

  • Show an explicit low-disk status, including disk capacity and available space, so the reason is visible.
  • Allow jobs already running to finish.
  • Resume accepting jobs when sufficient headroom returns, using a lower threshold to avoid flapping. Determine the resume threshold.

Related: #111 tracks bounded cleanup and reclaiming disk space.

Activity

  1. Nickfost commented on Nov 24, 2026

    @Nickfost
    MemberAuthor

    PR #191 merged as 9d33814d157f8303ea0c0258c1f016bff4212a87. The merged tree matches reviewed head 430678da39512dde16877bd39ad3a149d220ca17. The full hosted suite and commit conventions passed, and Codex completed its review with no findings. Validation run

    The engine measures workspace, Docker storage, and upload-spool headroom. It reports low_disk with filesystem capacity and available bytes, advertises zero capacity, defers acquisition, and continues processing active-job lifecycle events. The stop thresholds are 90% usage or below 10 GiB available. Recovery requires at most 85% usage and at least 15 GiB available on every monitored filesystem. The same percentage thresholds cover inode use. The local fixtures verified those thresholds and controller behavior. Engine guide

    Keep this issue open for GitHub Actions service acceptance. Use a separately authorized non-production GitHub App, runner group, and private fixture repository with this exact engine.

    • Confirm a job that starts before pressure can finish and clean up. Confirm a new job cannot start on an idle or prewarmed runner while the controller advertises zero capacity. Cover direct JobAssigned and a positive-capacity poll already in flight when pressure starts.
    • Where the service sends JobAvailable, acknowledge a batch containing an offer the controller declined because of disk pressure. Restore headroom and verify that the queued work becomes available and runs without a new submission or manual retry. Record the GitHub service/version and event sequence. If that path cannot be exercised, seek the supported contract for the affected service mode. Upstream discussion

    A disposable VM can host the controller and controlled disk pressure for that proof. It still needs an authenticated Actions scale set. Template adoption remains tracked in template #49.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions