Skip to content

Commit

Permalink
Merge pull request #95 from njzjz/njzjz-patch-1
Browse files Browse the repository at this point in the history
slurm: logging finished when squeue error
  • Loading branch information
felix5572 committed Jul 10, 2021
2 parents 09024ec + 7f74208 commit a63f172
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dpdispatcher/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def check_status(self, job, retry=0, max_retry=3):
err_str = stderr.read().decode('utf-8')
if str("Invalid job id specified") in err_str :
if self.check_finish_tag(job) :
dlog.info(f"job: {job.job_hash} {job.job_id} finished")
return JobStatus.finished
else :
return JobStatus.terminated
Expand Down

0 comments on commit a63f172

Please sign in to comment.