Skip to content

Commit

Permalink
JobWrapper: use correct fail method
Browse files Browse the repository at this point in the history
if the JobWrapper.fail method is called directly exit code (etc)
are lost.

fixes galaxyproject#14206

not sure why this error popped up now, probably a change in
tool verification ..?
  • Loading branch information
bernt-matthias committed Aug 29, 2022
1 parent 52de57b commit c2566ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ def fail(message=job.info, exception=None):
else:
# Prior to fail we need to set job.state
job.set_state(final_job_state)
return self.fail(f"Job {job.id}'s output dataset(s) could not be read")
return fail(f"Job {job.id}'s output dataset(s) could not be read")

job_context = ExpressionContext(dict(stdout=job.stdout, stderr=job.stderr))
if extended_metadata:
Expand Down

0 comments on commit c2566ec

Please sign in to comment.