unofficial mirror of gwl-devel@gnu.org
 help / color / mirror / Atom feed
From: Olivier Dion via <gwl-devel@gnu.org>
To: gwl-devel@gnu.org
Subject: Error in a process should interrupt the workflow
Date: Fri, 03 Jun 2022 11:48:14 -0400	[thread overview]
Message-ID: <87sfolagu9.fsf@laura> (raw)

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	other threads:[~2022-06-03 15:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-03 15:48 Olivier Dion via [this message]
2022-06-03 17:24 ` Error in a process should interrupt the workflow Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.guixwl.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfolagu9.fsf@laura \
    --to=gwl-devel@gnu.org \
    --cc=olivier.dion@polymtl.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).