Skip to content

feat(orch): throttle worker rust builds per target#72

Merged
nathanwhit merged 1 commit into
mainfrom
codex/rust-build-throttle
Jun 26, 2026
Merged

feat(orch): throttle worker rust builds per target#72
nathanwhit merged 1 commit into
mainfrom
codex/rust-build-throttle

Conversation

@nathanwhit

Copy link
Copy Markdown
Owner

Summary

Adds a target-local Cargo build throttle for coding workers so multiple workers on the same machine can continue reasoning/editing in parallel without all running expensive Rust builds at once.

  • injects a per-target cargo shim for worker-like sessions in both headless and tmux provider modes
  • throttles build-like Cargo commands with -max-rust-builds while leaving managers and non-build Cargo commands alone
  • adds fail-open behavior: stale slot cleanup, heartbeat refresh, bounded wait via -build-lease-timeout, and unthrottled fallback instead of wedging the fleet
  • exposes -cargo-build-jobs, -build-lease-timeout, and -build-lease-stale knobs and documents them

Validation

  • go test ./...

@nathanwhit nathanwhit marked this pull request as ready for review June 26, 2026 19:07
@nathanwhit nathanwhit merged commit e12910d into main Jun 26, 2026
1 check passed
@nathanwhit nathanwhit deleted the codex/rust-build-throttle branch June 26, 2026 19:07
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