Skip to content

fix: respect broker capacity and preserve active runners#79

Merged
Daliys merged 3 commits into
developfrom
daliys/broker-capacity-runner-cleanup
Jul 23, 2026
Merged

fix: respect broker capacity and preserve active runners#79
Daliys merged 3 commits into
developfrom
daliys/broker-capacity-runner-cleanup

Conversation

@Daliys

@Daliys Daliys commented Jul 23, 2026

Copy link
Copy Markdown
Member

What changed

  • Cap dispatched JIT runners at the configured machine capacity as well as the global job limit.
  • Do not delete online idle JIT runners during cleanup; GitHub may assign work to them immediately after inspection.

Why

The broker could over-dispatch beyond a machine declared capacity and could race GitHub dispatcher by deleting a live idle runner.

Validation

uv run --with pytest pytest -q tests/broker/test_broker.py — 12 passed.

@Daliys
Daliys marked this pull request as ready for review July 23, 2026 22:41
@Daliys
Daliys merged commit 10887e7 into develop Jul 23, 2026
4 checks passed
@Daliys
Daliys deleted the daliys/broker-capacity-runner-cleanup branch July 23, 2026 23:11
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