From 1305724c7ea3c2bb3e557918d5a1b17d572aa110 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 23 Apr 2021 14:58:39 +0100 Subject: Stop agent threads only when 2 or more are idle If the jobs are really quick, I think the one running thread keeps stopping and starting, and that stops the agent starting more threads. I think this change might help. --- guix-build-coordinator/utils.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix-build-coordinator/utils.scm b/guix-build-coordinator/utils.scm index ee1fea3..2b0b34c 100644 --- a/guix-build-coordinator/utils.scm +++ b/guix-build-coordinator/utils.scm @@ -710,7 +710,7 @@ References: ~a~%" running-job-args)) (desired-thread-count (get-thread-count))) (or (>= running-jobs-count desired-thread-count) - (> idle-thread-count 1)))) + (> idle-thread-count 2)))) (define (stop-thread) (hash-remove! running-job-args -- cgit v1.2.3