Unverified Commit cf036f19 authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #14530 from bernt-matthias/correct-fail

[21.09] JobWrapper: use correct fail method
parents 06baa27d cd4ae463
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: