Skip to content

Early stop / Break

If defined, at the end of or before a step, the predicate expression will be evaluated to decide if the flow should stop early.

For each step of the flow, an early stop can be defined. The result of the step will be compared to a previously defined predicate expression, and if the condition is met, the flow will stop after that step.

  • Pick the step you want to stop after.
  • Go to Advanced, then Early stop/Break.
  • Toggle on “Early stop or Break if condition met”.
  • Write the condition you want to stop on, based on the step’s results. In the expression, you can use result to access the current step’s result and flow_input for the flow’s input. You can also reference previous steps’ results using results (e.g. results.a, results.b), which gives access to the full result map of all completed steps.
  • Optionally, toggle on “Label flow as ‘skipped’ if stopped”. Skipped flows are just a label, useful to keep them out of the runs page.

To stop a flow early based on the flow inputs, you can set an “Early stop” from the flow settings. If the inputs meet the predefined condition, the flow will not run.