A Flow is a saved, editable directed acyclic graph of nodes. It has a name, a graph of nodes and connections, an optional schedule, and a set of editor settings. The Flow is the persistent definition - the thing you design, save, and share. The definition by itself does nothing; executing it is a separate concern.Documentation Index
Fetch the complete documentation index at: https://docs.twine.se/llms.txt
Use this file to discover all available pages before exploring further.
Flow runs
A FlowRun is one execution of a Flow. Every time a flow runs - manually, on a schedule, or from a dry run in the editor - a new FlowRun row is recorded. Each run captures:- Status:
running,ok,aborted,failed, orcancelled. - Start and finish timestamps.
- Errors encountered during execution.
- Logs emitted by nodes, the log level, and a trace identifier.
- Persisted assigns: a snapshot of named values the flow chose to keep.
Triggering a run
Flows can be started in several ways:- Manually, from the flow editor. Manual runs are enqueued with higher priority than scheduled runs so an operator’s ad-hoc execution jumps ahead of pending scheduled work.
- On a schedule. A Flow’s schedule has a cron expression and an enabled flag. When the schedule is enabled, the Flow Scheduler enqueues a run each time the cron expression matches.
- As a dry run, from the editor’s Evaluator pane. Dry runs substitute stub values for each assign declared by the graph and skip the actual step invocations. They are useful for validating that the graph is wired correctly without hitting source systems.
Cancelling a running flow
A running flow can be cancelled from the editor. Cancellation sends a signal to the running evaluator, which checks for the signal between nodes and finalises the FlowRun with statuscancelled. Cancellation is cooperative - a step that is currently blocked on an external call keeps running until that call returns, after which the evaluator picks up the signal and stops.
Cancellation is distinct from a flow aborting itself. See Execution and error handling for the difference between user-initiated cancellation, abort_flow, and the on_error policies.