Skip to content

A node can stop the run successfully

Stopping is a deliberate early finish, not a failure. Everything the run had not yet done is abandoned, and the run reports success.

The rule

Normative: this is the rule
  1. A node MAY stop the whole run.
  2. The stop MUST NOT be converted into an error output.
  3. The node MUST broadcast completed.
  4. The node's unit of work MUST be recorded as completed.
  5. The node's unit of work MUST NOT be recorded as failed.
  6. The value the stop carries MUST be recorded under the node's result key.
  7. All downstream and not-yet-started work MUST be abandoned.
  8. The run MUST finish with status completed.

What it means

A node that stops the run is not failing quietly — the run finishes with the same status a run that executed everything normally reports. Everything downstream of the stopping node, and anything else not yet started, simply never happens: not marked failed, not marked skipped, not recorded at all. A reader who expects a partially-executed run to say so somewhere is expecting the wrong signal; completed here means the run ended deliberately, not that every node ran.

Example

Three nodes in a line; the middle one stops the run.

Nodes executed before the stop, in orderstopped
["node_a", "node_b"]
What the run itself finishes ascompleted
"completed"

The third node never runs and never appears in the run's results.

Why

Recorded under OPEN-25.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · ERR-5 · changed in spec 1.0