all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Error in a process should interrupt the workflow
@ 2022-06-03 15:48 Olivier Dion via
  2022-06-03 17:24 ` Ricardo Wurmus
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Dion via @ 2022-06-03 15:48 UTC (permalink / raw)
  To: gwl-devel

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error in a process should interrupt the workflow
  2022-06-03 15:48 Error in a process should interrupt the workflow Olivier Dion via
@ 2022-06-03 17:24 ` Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2022-06-03 17:24 UTC (permalink / raw)
  To: Olivier Dion; +Cc: gwl-devel


Olivier Dion via <gwl-devel@gnu.org> writes:

> Given the following example:
>
> process error
>   # {
>     exit 1
>   }
>
> process should-not-run
>   # {
>      >&2 echo "You should not see this message!"
>   }
>
> workflow wf
>   processes
>     graph
>       should-not-run -> error
>
>
> 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?

Currently, there is not.  We only care about inputs and outputs.

-- 
Ricardo


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-03 17:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-03 15:48 Error in a process should interrupt the workflow Olivier Dion via
2022-06-03 17:24 ` Ricardo Wurmus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.