mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:29:24 +08:00
modules.services.slurm: partition set MaxTime to 48 hours
This commit is contained in:
@@ -97,18 +97,16 @@ inputs:
|
||||
"State=UNKNOWN"
|
||||
])
|
||||
(inputs.localLib.attrsToList slurm.node);
|
||||
partitionName = builtins.map
|
||||
(partition:
|
||||
let nodes = builtins.concatStringsSep "," partition.value;
|
||||
in builtins.concatStringsSep " "
|
||||
[
|
||||
partition.name
|
||||
"Nodes=${builtins.concatStringsSep "," (builtins.map (n: slurm.node.${n}.name) partition.value)}"
|
||||
"Default=${if partition.name == slurm.defaultPartition then "YES" else "NO"}"
|
||||
"MaxTime=INFINITE"
|
||||
"State=UP"
|
||||
])
|
||||
(inputs.localLib.attrsToList slurm.partitions);
|
||||
partitionName = inputs.lib.mapAttrsToList
|
||||
(n: v: builtins.concatStringsSep " "
|
||||
[
|
||||
n
|
||||
"Nodes=${builtins.concatStringsSep "," (builtins.map (n: slurm.node.${n}.name) v)}"
|
||||
"Default=${if n == slurm.defaultPartition then "YES" else "NO"}"
|
||||
"MaxTime=48:00:00"
|
||||
"State=UP"
|
||||
])
|
||||
slurm.partitions;
|
||||
procTrackType = "proctrack/cgroup";
|
||||
controlMachine = slurm.master;
|
||||
controlAddr = slurm.node.${slurm.master}.address;
|
||||
|
||||
Reference in New Issue
Block a user