Skip to main content
OutputsTerminal

Finish

output_finish
Aliases:finish

Abandon or terminate the workflow early.

Inputs1
Outputs0
Settings3
Field AccessPayload
Examples2

About this Node

Immediately terminates the workflow run with a chosen completion status (`Completed`, `Failed`, or `Canceled`) and an optional message drawn either statically or from upstream state. When reached on any branch, Finish cancels any leftover concurrent tasks and records `_finish_message` and `_workflow_output`.

Ports & Branches

Inputs (1)
inPort 0Terminal inbound execution flow
Outputs (0)None (terminal node)

How this Node Reads Data

Input Access Field Example Description
Dynamic Finish Message / Payload Payload source_from_input error_summary When `source_from_input` is true, resolves the final message/payload from incoming state (`entire_state`, `specific_key`, or `custom_template`).

State Keys Written (Outputs)

Key Pattern Type Role Description
_finish_message string Primary Final human-readable completion or termination reason recorded in the run log.
_workflow_output object | string | any Primary Final evaluated output payload captured when the workflow terminates.

Tips & Best Practices

  • Terminal node (`IsTerminal = true`): has input port `0` only and short-circuits any other active parallel tasks once reached.
  • Choose `Completed` for expected no-op exits so monitoring alerts only trigger on genuine `Failed` runs.

Commonly Paired With