gwl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error in a process should interrupt the workflow


From: Olivier Dion
Subject: Error in a process should interrupt the workflow
Date: Fri, 03 Jun 2022 11:48:14 -0400

Given the following example:
--8<---------------cut here---------------start------------->8---
process error
  # {
    exit 1
  }

process should-not-run
  # {
     >&2 echo "You should not see this message!"
  }

workflow wf
  processes
    graph
      should-not-run -> error
--8<---------------cut here---------------end--------------->8---

I'm expecting the second process to not run because the first has failed
with an exit value other than zero.

Is there a way to configure the workflow to fail on any error?

Something along like this:
--8<---------------cut here---------------start------------->8---
workflow wf
  abort-on-error #t
  ...
--8<---------------cut here---------------end--------------->8---

-- 
Olivier Dion
oldiob.dev




reply via email to

[Prev in Thread] Current Thread [Next in Thread]