aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-05-19 18:54:43 +0100
committerChristopher Baines <mail@cbaines.net>2020-05-19 18:54:43 +0100
commit4d308729c83869566ea07b7aae03f2cdef405cf1 (patch)
tree1febdec168a10306353db1acad4ee29f888c09d5 /scripts
parentd5d30b17f678f6b0f7de45ba4fee2a5090b0ee8f (diff)
downloadbuild-coordinator-4d308729c83869566ea07b7aae03f2cdef405cf1.tar
build-coordinator-4d308729c83869566ea07b7aae03f2cdef405cf1.tar.gz
Fetch substitutes in a separate channel
As I'm guessing this could block the thread for fibers.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/guix-build-coordinator.in15
1 files changed, 10 insertions, 5 deletions
diff --git a/scripts/guix-build-coordinator.in b/scripts/guix-build-coordinator.in
index 0043a7e..77ab46e 100644
--- a/scripts/guix-build-coordinator.in
+++ b/scripts/guix-build-coordinator.in
@@ -463,12 +463,17 @@ processed?: ~A
chunked-request-channel)))))))
(client-communication-thunk
(let ((client-communication-uri
- (string->uri (assq-ref opts 'client-communication))))
+ (string->uri (assq-ref opts 'client-communication)))
+ (substitutes-channel
+ (make-worker-thread-channel (const '())
+ #:parallelism 2)))
(lambda ()
- (start-client-request-server (assq-ref opts 'secret-key-base)
- (uri-host client-communication-uri)
- (uri-port client-communication-uri)
- build-coordinator)))))
+ (start-client-request-server
+ (assq-ref opts 'secret-key-base)
+ (uri-host client-communication-uri)
+ (uri-port client-communication-uri)
+ build-coordinator
+ substitutes-channel)))))
(start-hook-processing-thread build-coordinator)
(trigger-build-allocation build-coordinator)