Open rgov opened 5 years ago
The utils.parseSLURM
function does not work with a single node.
Here's my replacement:
import subprocess
def parseSLURM(string):
"""Return a host list from a SLURM string"""
out = subprocess.check_output(['scontrol', 'show', 'hostnames', string])
hosts = [ (x.decode('utf-8'), 1) for x in out.rstrip().split(b'\n') ]
return hosts
If I patch this to just use '127.0.0.1', I get: