From 054658c5496a66d91a8b42f555298c745a7599f6 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 10 Oct 2022 20:56:49 +0100 Subject: Allow specifying the maximum number of allocated builds For an agent. --- scripts/guix-build-coordinator-agent.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts') diff --git a/scripts/guix-build-coordinator-agent.in b/scripts/guix-build-coordinator-agent.in index 7cfb449..52d77ae 100644 --- a/scripts/guix-build-coordinator-agent.in +++ b/scripts/guix-build-coordinator-agent.in @@ -82,6 +82,11 @@ (alist-cons 'max-parallel-builds (string->number arg) result))) + (option '("max-allocated-builds") #t #f + (lambda (opt name arg result) + (alist-cons 'max-allocated-builds + (string->number arg) + result))) (option '("max-1min-load-average") #t #f (lambda (opt name arg result) (alist-cons 'max-1min-load-average @@ -181,6 +186,7 @@ coordinator-interface (delete-duplicates (assq-ref opts 'systems)) (assq-ref opts 'max-parallel-builds) + (assq-ref opts 'max-allocated-builds) (assq-ref opts 'max-parallel-uploads) (or (assq-ref opts 'derivation-substitute-urls) (assq-ref opts 'substitute-urls)) -- cgit v1.2.3