aboutsummaryrefslogtreecommitdiff
path: root/guix-build-coordinator/agent.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-01-06 19:54:58 +0000
committerChristopher Baines <mail@cbaines.net>2021-01-06 19:54:58 +0000
commitb5d998c22f7d4db3e26166ada9489af363f2d47a (patch)
tree7c3261879947813f6698ea0f98f166daf31c2898 /guix-build-coordinator/agent.scm
parent40e5a4fef56c77f0b77845152ab83f66ae029eb5 (diff)
downloadbuild-coordinator-b5d998c22f7d4db3e26166ada9489af363f2d47a.tar
build-coordinator-b5d998c22f7d4db3e26166ada9489af363f2d47a.tar.gz
Work on the agent thread handling some more
Various changes, hopefully improvements. Inactive threads should stop promptly, and new threads should start promptly when new builds arrive.
Diffstat (limited to 'guix-build-coordinator/agent.scm')
-rw-r--r--guix-build-coordinator/agent.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix-build-coordinator/agent.scm b/guix-build-coordinator/agent.scm
index 6562ef8..8430724 100644
--- a/guix-build-coordinator/agent.scm
+++ b/guix-build-coordinator/agent.scm
@@ -220,7 +220,8 @@
(fetched-builds
(fetch-builds-for-agent coordinator-uri uuid password
systems
- (max current-threads 1)
+ (min (max current-threads 1)
+ (+ 1 job-count))
#:log (build-log-procedure lgr)))
(new-builds
(remove (lambda (build)