Skip to content

Commit

Permalink
SLURM: fix the queue info command
Browse files Browse the repository at this point in the history
The queue info command for the SLURM batch system was outputing an
asterisk (indicating a default queue) that was not getting parsed.

From the sinfo man page: http://slurm.schedmd.com/sinfo.html

%P - Partition name followed by "*" for the default partition ,also see %R
%R - Partition name, all see %P
  • Loading branch information
Steve Johnson authored and holzman committed Oct 31, 2014
1 parent f41211f commit d15d2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gip/lib/python/slurm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# TODO: replace with slurm equivalents
batch_system_info_cmd = "sinfo -V"
jobs_cmd = 'squeue -h -o "%i %u %T %P"'
queue_info_cmd = 'sinfo -h -o "%P %a %C %l"'
queue_info_cmd = 'sinfo -h -o "%R %a %C %l"'
#queue_info_cmd = "qstat -Q -f %(slurmHost)s"
#jobs_cmd = "qstat"
#slurmnodes_cmd = "slurmnodes -a"
Expand Down

0 comments on commit d15d2b1

Please sign in to comment.