How to stop a workflow at any specific point?

Hi!

What is the recommended method to stop a (multi-branch) workflow when a condition occurs? I know that the “Stop and Error” node works, but (unsurprisingly) that raises an error which then activates the error workflow. Is there any less aggressive method that essentially jumps to the end of the workflow?

Thanks!

1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Bez

This one.

nkzpte4XF5xv1jnr000411

Great - thanks :slight_smile:

Just tried it, and it does continue executing branches after the noop node. Is there anything special I need to do beyond just adding it there?

1 Like

Please share your workflow.

Here’s a very simple example of 3 nodes. I’d like the entire workflow to stop after executing the Top branch if the IF is true, and not execute the Middle and Bottom branches. I know this can be done with the Stop/Error node, but was wondering if there’s a less aggressive method

Hi @Bez I don’t think you can do that. Because n8n will process the workflow in parallel. Meaning one after one node. So it doesn’t know the operation has ended and tries to process the next one.

Thanks @mcnaveen - if you use the Stop / Error node, it does stop. But never mind, thanks for the help.

1 Like

Good to know. Thank you

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.