diff --git a/webservice/job_monitor.py b/webservice/job_monitor.py index 02f1ca4245e1e857dffad7ea7a95246691947e09..f36cb8363917368ca2ca0a78462b6fec71ff1c24 100644 --- a/webservice/job_monitor.py +++ b/webservice/job_monitor.py @@ -77,11 +77,11 @@ def slurm_status(filter_user=True): statii = {} for r in rlines[1:]: try: - jobid, status, runtime, hostname = r.split() + jobid, status, runtime, hostname = r.split(' ') jobid = jobid.strip() statii[jobid] = status, runtime, hostname except ValueError: # not enough values to unpack in split - pass + log.warning("Could not parse squeue status line %r", r) return statii else: log.error("Running squeue failed. stdout: %r, stderr: %r",