We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbe6799 + 0d9cef0 commit c56cf58Copy full SHA for c56cf58
reframe/core/schedulers/torque.py
@@ -9,6 +9,7 @@
9
#
10
11
import re
12
+import os
13
from datetime import datetime
14
15
import reframe.utility.os_ext as os_ext
@@ -92,4 +93,7 @@ def finished(self, job):
92
93
raise JobError('maximum pending time exceeded',
94
jobid=job.jobid)
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