Skip to content

Commit c56cf58

Browse files
author
Vasileios Karakasis
authored
Merge pull request #1279 from victorusu/bugfix/torque_job_completion
[bugfix] More robust completion check for the Torque scheduler
2 parents dbe6799 + 0d9cef0 commit c56cf58

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

reframe/core/schedulers/torque.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#
1010

1111
import re
12+
import os
1213
from datetime import datetime
1314

1415
import reframe.utility.os_ext as os_ext
@@ -92,4 +93,7 @@ def finished(self, job):
9293
raise JobError('maximum pending time exceeded',
9394
jobid=job.jobid)
9495

95-
return job.state == 'COMPLETED'
96+
stdout = os.path.join(job.workdir, job.stdout)
97+
stderr = os.path.join(job.workdir, job.stderr)
98+
done = os.path.exists(stdout) and os.path.exists(stderr)
99+
return job.state == 'COMPLETED' and done

0 commit comments

Comments
 (0)