Skip to content

Commit 0aa1b4f

Browse files
authored
Merge pull request #396 from Manyi-Yang/master
add another check_status option for psate (PBS)
2 parents 00432d2 + d2e7971 commit 0aa1b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpgen/dispatcher/PBS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def check_status(self) :
1616
= self.context.block_call ("qstat " + job_id)
1717
err_str = stderr.read().decode('utf-8')
1818
if (ret != 0) :
19-
if str("qstat: Unknown Job Id") in err_str :
19+
if str("qstat: Unknown Job Id") in err_str or str("Job has finished") in err_str:
2020
if self.check_finish_tag() :
2121
return JobStatus.finished
2222
else :

0 commit comments

Comments
 (0)