Skip to main content
Language reference / for_each

Meaning and placement

task

Fan this task out over a collection · ONE block, so the concurrency is visible where the fan-out is declared. max_parallel and fail_fast live here because they have no meaning without it. In the same object: after · agent · exec · extract · group · infer · invoke · lift · on_error · retry · returns · timeout · when · with Schema source (use the pointer above)

In a source template

Excerpt from templates/fanout.nika.yaml, source lines 98–107. This is a fragment, not a runnable workflow.
illustration

Templates containing this field

These are literal key occurrences in the source files, not an execution or conformance claim. How to instantiate a template.

Contract and implementation

This page projects the named specification revision. Check released engine status and the validation workflow before running a file. An optional field is not evidence that every engine supports every value. Canonical identity: language:word:for_each. Spec revision: c5ebbb7b862b. How documentation stays connected.