parallel
Executes multiple steps concurrently, each on a separate goroutine, and waits for all branches to complete.
Declaration
Semantics
- Each branch executes independently and cannot see other branch results until the block completes.
- Execution pauses at the closing brace until every branch finishes.
- An error in any branch cancels the remaining branches and fails the pipeline.
- Branch outputs are available under
ctx.steps.<name>after the block completes.
See Parallel aggregation for a complete example.