Skip to content

Commit ed0fc92

Browse files
committed
Detect launcher failure in the batch scheduler executors. Somehow this
was only done in the local executor.
1 parent 391eb6b commit ed0fc92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/psij/executors/batch/batch_scheduler_executor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,11 @@ def _read_aux_files(self, job: Job, status: JobStatus) -> None:
567567
if status.message is None:
568568
# only read output from submit script if another error message is not
569569
# already present
570-
status.message = self._read_aux_file(job, '.out')
570+
out = self._read_aux_file(job, '.out')
571+
if out:
572+
launcher = self._get_launcher_from_job(job)
573+
if launcher.is_launcher_failure(out):
574+
status.message = launcher.get_launcher_failure_message(out)
571575
logger.debug('Output from launcher: %s', status.message)
572576
else:
573577
self._delete_aux_file(job, '.out')

0 commit comments

Comments
 (0)