Expand description
Nested bodies: foreach/batch (dynamic fan-out
over an array, batches with bounded parallelism and rate pacing, per-batch
durable progress, positional collection, on_error: continue slots),
iterate (a bounded structured loop with while/until/
max_iterations), parallel (static branches, fan-in object), race
(first branch to finish wins, the rest are cancelled) and subgraph (an
inline sub-DAG). Body steps are ordinary steps executed under a scope:
their run-record ids are <parent>[<index>].<step> (elements /
iterations), <parent>{<branch>}.<step> (branches) or <parent>.<step>
(subgraph); templates inside a body see item, index, batch,
iteration, branch and steps.<sibling> resolved within the scope.
The parent step’s wait record carries the durable progress.
Structs§
- Scope
- The scope a nested step runs in.
- Segment
- One segment of a scoped id:
name,name[i],name{branch}.
Enums§
- Body
State - The state of one body instance.
Functions§
- is_
scoped - Whether an id is nested (has a scope).
- parent_
of - The parent scope of a scoped id (
each[3].classify→each[3]). - parse_
scoped - Parse
each[3].classify→[each[3], classify]. - scoped_
id - The scoped id of a body step.
- strip_
scope_ suffix each[3]→each;par{a}→par;sub→sub; nestedx[1].y[2]→x[1].y.