aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-04-23 14:58:39 +0100
committerChristopher Baines <mail@cbaines.net>2021-04-23 14:58:39 +0100
commit1305724c7ea3c2bb3e557918d5a1b17d572aa110 (patch)
treea3b2ade7db81ab183b5f80560eb42b7f9d8bfa1b
parentf836f070b35d2f360412450ec88c6dc415cf9365 (diff)
downloadbuild-coordinator-1305724c7ea3c2bb3e557918d5a1b17d572aa110.tar
build-coordinator-1305724c7ea3c2bb3e557918d5a1b17d572aa110.tar.gz
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.
-rw-r--r--guix-build-coordinator/utils.scm2
1 files changed, 1 insertions, 1 deletions
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