Skip to content

Commit 7baa58e

Browse files
authored
Additional Slurm binding for mapping nodes to reservations (#561)
* Additional Slurm binding for mapping nodes to reservations * avoid unecessary line grouping * remove reverse command as scontrol only returns one reservation per node (slurm bug#19884)
1 parent 1aa37e3 commit 7baa58e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

conf/groups.conf.d/slurm.conf.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ all: sinfo -h -o "%N"
1212
list: sinfo -h -o "%R"
1313
reverse: sinfo -h -N -o "%R" -n $NODE
1414

15+
#
16+
# SLURM node-reservation bindings
17+
#
18+
[slurmresv,sr]
19+
map: scontrol -o show reservation $GROUP | grep -Po 'Nodes=\K[^ ]+'
20+
all: scontrol -o show reservation | grep -Po 'Nodes=\K[^ ]+'
21+
list: scontrol -o show reservation | grep -Po 'ReservationName=\K[^ ]+'
22+
cache_time: 60
23+
1524
#
1625
# SLURM state bindings
1726
#

0 commit comments

Comments
 (0)