Skip to content

Commit d2e7971

Browse files
Manyi YangManyi Yang
authored andcommitted
add another check_status option for psate (PBS)
1 parent ca01bd8 commit d2e7971

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)