Skip to content

Commit

Permalink
Fix job status regex for SLURM; Addresses #1
Browse files Browse the repository at this point in the history
  • Loading branch information
selimnairb committed Jan 7, 2016
1 parent 6271b15 commit 3e4f74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rhessyscalibrator/calibration_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def getRunStatusCmdRegex(self):
that matches the job ID in group 1 and the job status
in group 2.
"""
return re.compile("^(\S+)\s+\S+\s+\S+\s+\S+\s+(\S+)\s+\S+\s+\S+\s+\S+$")
return re.compile("^\s*(\S+)\s+\S+\s+\S+\s+\S+\s+(\S+)\s+\S+\s+\S+\s+\S+\s*$")

def mapStatusCode(self, status_code):
""" Map between status codes of the underlying queue system
Expand Down

0 comments on commit 3e4f74b

Please sign in to comment.