This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

Orquesta workflow should continue if with item step fails


I have a simple workflow iterating over an array of URLs and querying them via core.http by using with.

      items: <% ctx().url_list %>
    action: core.http
      url: <% item() %>
      method: "PUT"
      body: ...

Now I have the case that one called URL returns 404 error and therefore this action fails, but also interrupts all other queries and the whole workflow fails.

How can I configure it to continue even if one iteration fails?


By virtue of the workflow engine works, single failure at any given step will bring the workflow to stop. The only way to handle or continue is to add handler for failure by using when <% failed() %>. Though, this is not feasible in the with-items at the time of writing. The entire loop is finished and then only the flow proceeds to the next step. If possible, you might want to consider making this call from python-script with loop or shell-script making curl calls where you have handle on each request and continue the iteration while logging cases that fail. Hope that helps.

Thanks, for your response. This is what I also recognized so far.
Is there anything planned to enhance this situation?
Is it useful to open a git issue as enhancement request, or is already something in place?