Limit job-driven runner starts #9

Merged
simon merged 1 commit from feature/max-running-jobs-10 into main 2026-05-23 08:17:41 +00:00
Owner

Adds controller.max_running_jobs / MAX_RUNNING_JOBS with a default of 10.

The scaler now:

  • counts running jobs separately from waiting jobs
  • caps job-driven runner starts at the remaining running-job budget
  • keeps the four-runner warm pool within max_runners=14
  • prevents job-handle start overrides from bypassing the cap

Note: this is a provisioning cap. Forgejo may still assign queued jobs to already-hot eligible idle runners, so max_runners remains the absolute fleet cap.

Adds controller.max_running_jobs / MAX_RUNNING_JOBS with a default of 10. The scaler now: - counts running jobs separately from waiting jobs - caps job-driven runner starts at the remaining running-job budget - keeps the four-runner warm pool within max_runners=14 - prevents job-handle start overrides from bypassing the cap Note: this is a provisioning cap. Forgejo may still assign queued jobs to already-hot eligible idle runners, so max_runners remains the absolute fleet cap.
Limit job-driven runner starts
Some checks failed
Build and release / build (pull_request) Failing after 12m45s
0c8650fff9
simon merged commit 9c05fdc512 into main 2026-05-23 08:17:41 +00:00
simon deleted branch feature/max-running-jobs-10 2026-05-23 08:17:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carrtech/forgejo-runner-autoscaler!9
No description provided.