From a73dc15f4cb081462f15f0eb31618ce3d1d556e8 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 19 Jun 2021 12:05:11 +0100 Subject: agent: Tweak the number of builds to fetch. Include the jobs from the post build queue too, since they'll still be allocated. --- guix-build-coordinator/agent.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix-build-coordinator/agent.scm b/guix-build-coordinator/agent.scm index 7aee091..6fe3e71 100644 --- a/guix-build-coordinator/agent.scm +++ b/guix-build-coordinator/agent.scm @@ -393,8 +393,8 @@ (fetched-builds (fetch-builds-for-agent coordinator-interface systems - (min (max current-threads 1) - (+ 1 job-count)) + (+ (max current-threads 1) + (count-post-build-jobs)) #:log (build-log-procedure lgr))) (new-builds (remove (lambda (build) -- cgit v1.2.3