DocsNodesFlowFor each, in parallel

For each, in parallel

Starts one path per item of a list, all at once, up to 1,000. The paths must meet again at a Wait for paths, which decides when the run carries on.

Kindcontrol:parallelForEach
GroupFlow
Credits0.1 credits
Ports out2

How it looks

Settings

SettingRequiredWhat it does
ListcollectionYesWhere the list is in the run.

Ports

PortThe run leaves by it when
bodyOnce per item, each on its own path. Lead them all to one Wait for paths. The canvas calls it each item.
emptyThe list had no items, so no path started.

What it adds to the run

Later nodes can read these, in a condition or as {{name}} in a text field.

ValueHolds
itemThe item, on each path.
Every path starts at onceThere's no limit on how many run at the same time yet, so a list of 500 calls to a URL makes 500 calls together.

Problems you might see

CodeMeans
PARALLEL_FOREACH_WITHOUT_JOINThe paths don't reach a Wait for paths. Shown when you publish.
PFE_COLLECTION_NOT_ARRAYThe value at List isn't a list.
PFE_FAN_OUT_TOO_LARGEThe list has more than 1,000 items. Nothing starts.

Problems found when you publish stop the publish and point at the node. Problems while a run is going fail the node, and its On failure setting decides what happens next. See the error codes for the API's own.