diff options
author | Andreas Enge <andreas@enge.fr> | 2024-07-02 16:55:35 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2024-09-18 11:20:35 +0200 |
commit | fb8c4916be554ddf55e21508922d9b398a584f8a (patch) | |
tree | fa5c1d0aa59190023b8e34a786eca967d50cdbbe /gnu/services | |
parent | 4b7bb05c29d390fb095f7a96e83c54efa8379497 (diff) | |
download | guix-fb8c4916be554ddf55e21508922d9b398a584f8a.tar guix-fb8c4916be554ddf55e21508922d9b398a584f8a.tar.gz |
services: guix-build-coordinator-agent: Remove defaults.
* gnu/services/guix.scm (<guix-build-coordinator-agent-configuration>)
[max-parallel-builds, max-parallel-uploads]: Set default to #f.
(guix-build-coordinator-agent-shepherd-services): Check for
max-parallel-builds.
* doc/guix.texi (Guix Services): Adapt the documentation.
If set to #f, the default values are now taken as the defaults of the
guix-build-coordinator-agent command.
Change-Id: Ide6dde0e88aa0dc851b6295095f414ca2ddc72ac
Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail>
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/guix.scm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/services/guix.scm b/gnu/services/guix.scm index 0182c21ea7..fdeaeeb472 100644 --- a/gnu/services/guix.scm +++ b/gnu/services/guix.scm @@ -194,10 +194,10 @@ (default #f)) (max-parallel-builds guix-build-coordinator-agent-configuration-max-parallel-builds - (default 1)) + (default #f)) (max-parallel-uploads guix-build-coordinator-agent-configuration-max-parallel-uploads - (default 1)) + (default #f)) (max-allocated-builds guix-build-coordinator-agent-configuration-max-allocated-builds (default #f)) @@ -443,8 +443,10 @@ #~(#$(string-append "--name=" agent-name) #$(string-append "--dynamic-auth-token-file=" token-file)))) - #$(simple-format #f "--max-parallel-builds=~A" - max-parallel-builds) + #$@(if max-parallel-builds + #~(#$(simple-format #f "--max-parallel-builds=~A" + max-parallel-builds)) + #~()) #$@(if max-parallel-uploads #~(#$(simple-format #f "--max-parallel-uploads=~A" max-parallel-uploads)) |