From 64d8638b379827e88e80be47790cf5031cc9ca2f Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 22 May 2022 13:24:12 +0100 Subject: Use the substitutes channel for reading derivations I think the use of gnutls for the network requests, or the network requests themselves may be causing fibers to block. --- guix-build-coordinator/client-communication.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/guix-build-coordinator/client-communication.scm b/guix-build-coordinator/client-communication.scm index 9d0b7d1..e96b374 100644 --- a/guix-build-coordinator/client-communication.scm +++ b/guix-build-coordinator/client-communication.scm @@ -407,9 +407,12 @@ ,(if (null? (or substitute-urls '())) read-drv/substitute (lambda (derivation-file) - (read-derivation-through-substitutes - derivation-file - substitute-urls))) + (call-with-worker-thread + substitutes-channel + (lambda () + (read-derivation-through-substitutes + derivation-file + substitute-urls))))) ,@(let ((priority (assoc-ref body "priority"))) (if priority `(#:priority ,priority) -- cgit v1.2.3