From 03c28d8598e75c0a227d2f32723bafb9045f1655 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Wed, 11 Feb 2026 21:59:25 +0200 Subject: [PATCH] Limit parallel requests to 10 Set a limit of 10 parallel goroutines to prevent flooding the github API. Signed-off-by: Gabriel Adrian Samfira --- runner/pool/pool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/runner/pool/pool.go b/runner/pool/pool.go index a4b9fa07..3fbd3ab3 100644 --- a/runner/pool/pool.go +++ b/runner/pool/pool.go @@ -655,6 +655,7 @@ func (r *basePoolManager) reapTimedOutRunners(runners []forgeRunner) error { func (r *basePoolManager) cleanupOrphanedGithubRunners(runners []forgeRunner) error { poolInstanceCache := map[string][]commonParams.ProviderInstance{} g, ctx := errgroup.WithContext(r.ctx) + g.SetLimit(10) for _, runner := range runners { if !isManagedRunner(labelsFromRunner(runner), r.controllerInfo.ControllerID.String()) { slog.DebugContext(