Skip to content

Early stop / Break

A step (or the flow itself) can carry a predicate expression that’s checked after execution to decide whether the flow should stop right there instead of continuing to the next step.

For any step in the flow, you can configure an early stop: the step’s result is checked against a predicate expression, and if it evaluates true, the flow stops after that step.

  • Pick the step you want the flow to stop after.
  • Go to Advanced, then Early stop/Break.
  • Toggle on “Early stop or Break if condition met”.
  • Write the condition against the step’s own result, available as result, and the flow’s input, available as flow_input. You can also reach back into any earlier step’s result via results (e.g. results.a, results.b), which exposes the full result map of every step that’s completed so far.
  • Optionally toggle on “Label flow as ‘skipped’ if stopped” — this only affects the label shown on the run, which is handy for keeping intentionally-stopped runs out of the main runs list.

To stop a flow before it even starts, based on its inputs, set an “Early stop” condition in the flow’s settings. If the condition matches the given inputs, the flow doesn’t run at all.