Skip to content

Commit 8eb0a4a

Browse files
committed
job: fix exception handling on job submission
- This is a workaround to prevent CWL workflow from getting stuck on running state due to an infinite loop. This commit partially fixes it. A workflow that fails on job submission validation will end up with a finished status instead of failed. To be fixe as part of #179
1 parent ab8f8a0 commit 8eb0a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reana_workflow_engine_cwl/cwl_reana.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def run(self, runtimeContext): # noqa: C901
359359
log.error(
360360
f"[job {self.name}] " f"Failed to submit task to job controller:\n{e}"
361361
)
362-
return WorkflowException(e)
362+
raise WorkflowException(e)
363363

364364
def callback(rcode):
365365
try:

0 commit comments

Comments
 (0)