Workflow concepts
A workflow is a directed acyclic graph of work, a workflow run is one execution of it, and a node is one unit of work inside it. The run and retry semantics are below in more depth than the Workflows overview carries, and that overview is the better starting point if you are meeting these terms for the first time.
Workflow
A workflow is a directed acyclic graph (DAG): a list of nodes holding the work, and a list of edges holding the dependencies between them. A node runs once every upstream node it depends on has completed, and the graph cannot contain a cycle.
Workflows are persistent. You create one, then submit it as many times as you need, and each submission produces a run with its own status, logs and outputs.
For what the node kinds are and what each is for, see Key concepts on the Workflows overview.
Workflow run
A workflow run is one execution of a workflow. It tracks the status of every node as the DAG progresses.
Submitting a workflow creates a new run. The run starts in queued, moves to running when
the first node starts, and ends in one of completed, failed, or stopped.
A run references the workflow by id but does not share mutable state with it. Editing the workflow after submission does not change any run that was already created. That is the property that makes a run a record of what happened rather than a view of the current template.
Retried runs
A retried run continues a previous failed run rather than starting over. It references the run it came from and reuses the outputs of nodes that succeeded and have not changed since. A node executes again only if it failed, if its configuration changed, or if it is downstream of a node in either of those states.
That is why a retry after a configuration change can rerun more than you expect. Changing a node near the top of the graph invalidates everything below it.
Related
- Workflows overview — what workflows are for, the node kinds, prerequisites, and how to get started
- Building workflow templates — composing the same DAG on the drag-and-drop canvas
- Running workflows — submitting, monitoring and retrying a run
- Rescale API documentation — the published endpoint reference