Skip to content

Commit

Permalink
enabled raw sbatch errors to be logged (#262)
Browse files Browse the repository at this point in the history
* enabled raw sbatch errors to be logged

* tweaks/correction suggested by Frank

* reduced line length

* fixed flake8 error in slurm-adapter
  • Loading branch information
crkrenn committed May 16, 2020
1 parent 0ae906f commit 95049f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion maestrowf/interfaces/script/slurmscriptadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def submit(self, step, path, cwd, job_map=None, env=None):
jid = re.search('[0-9]+', output).group(0)
return SubmissionRecord(SubmissionCode.OK, retcode, jid)
else:
LOGGER.warning("Submission returned an error.")
LOGGER.warning(
"Submission returned an error (see next line).\n%s", err)
return SubmissionRecord(SubmissionCode.ERROR, retcode)

def check_jobs(self, joblist):
Expand Down

0 comments on commit 95049f1

Please sign in to comment.