cluster/services/hercules-ci-multi-agent: limit concurrentTasks
This commit is contained in:
parent
467bb80bbe
commit
c0038700e0
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ cluster, depot, lib, ... }:
|
||||
{ cluster, config, depot, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (cluster.config.services.hercules-ci-multi-agent) nodes secrets;
|
||||
|
@ -40,6 +40,11 @@ in
|
|||
settings = {
|
||||
clusterJoinTokenPath = secrets."clusterJoinToken-${org}".path;
|
||||
binaryCachesPath = secrets.cacheConfig.path;
|
||||
concurrentTasks = lib.pipe config.reflection.hardware.cpu.cores [
|
||||
(lib.flip builtins.div 2)
|
||||
builtins.floor
|
||||
(lib.max 2)
|
||||
];
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue