OleHolmNielsen / Slurm_tools

My tools for the Slurm HPC workload manager
GNU General Public License v3.0
444 stars 96 forks source link

Get partition from squeue for running jobs #5

Closed martijnkruiten closed 5 years ago

martijnkruiten commented 5 years ago

Nodes can be in multiple partitions (for example if you use floating partitions) and sinfo does not care for the partition that a job is running on. With this change the partition is requested from squeue, which returns the correct partition. sinfo is still used as a fallback option.