Skip to content

Commit

Permalink
Merge pull request #77 from njzjz/bugfix-slurm
Browse files Browse the repository at this point in the history
bugfix in Slurm.check_status
  • Loading branch information
njzjz committed Jul 1, 2021
2 parents 6985514 + bdb2f68 commit 3d54733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdispatcher/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def check_status(self, job, retry=0, max_retry=3):
dlog.warning("Sleep 60 s and retry checking...")
# rest 60s
time.sleep(60)
return self.check_status(job_id, retry=retry+1, max_retry=max_retry)
return self.check_status(job, retry=retry+1, max_retry=max_retry)
else:
raise RuntimeError("status command squeue fails to execute."
"job_id:%s \n error message:%s\n return code %d\n" % (job_id, err_str, ret))
Expand Down

0 comments on commit 3d54733

Please sign in to comment.