From 528c6dfb58318bca6deefc3f1097122ddd735203 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 17 Oct 2023 10:02:19 -0400 Subject: [PATCH] 20984: Wake up scheduler whenever AtCapacity condition expires. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- lib/dispatchcloud/worker/pool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dispatchcloud/worker/pool.go b/lib/dispatchcloud/worker/pool.go index fc9f5445d6..13c369d0c6 100644 --- a/lib/dispatchcloud/worker/pool.go +++ b/lib/dispatchcloud/worker/pool.go @@ -393,6 +393,7 @@ func (wp *Pool) Create(it arvados.InstanceType) bool { wp.atCapacityUntil = map[string]time.Time{} } wp.atCapacityUntil[capKey] = time.Now().Add(capacityErrorTTL) + time.AfterFunc(capacityErrorTTL, wp.notify) } logger.WithError(err).Error("create failed") wp.instanceSet.throttleCreate.CheckRateLimitError(err, wp.logger, "create instance", wp.notify) -- 2.30.2