Commit cd4ae463 authored by Matthias Bernt's avatar Matthias Bernt
Browse files

JobWrapper: use correct fail method

if the JobWrapper.fail method is called directly exit code (etc)
are lost.

fixes https://github.com/galaxyproject/galaxy/issues/14206

not sure why this error popped up now, probably a change in
tool verification ..?
parent 06baa27d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1696,7 +1696,7 @@ class JobWrapper(HasResourceParameters):
                    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: