Templates / Pattern for parallel sub-workflow execution followed by wait-for-all loop

Pattern for parallel sub-workflow execution followed by wait-for-all loop

Ready for 3.0

by Hubschrauber ✓ · 12,420 views · created 2024-11-11 · Engineering

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 14 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). It uses only n8n's built-in nodes.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Simulate Multi-Item for Parallel Processing (Code): runs custom JavaScript code
  2. Respond to Webhook: sends the response back to the webhook caller
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Wait: pauses before continuing
  5. Initialize finishedSet (Edit Fields (Set)): sets 1 field: finishedSet
  6. Start Sub-Workflow via Webhook (HTTP Request): calls an HTTP API (POST)
  7. Call Resume on Parent Workflow (HTTP Request): calls an HTTP API (POST)
  8. If: checks a condition and branches into true / false
  9. Webhook Callback Wait (Wait): pauses until webhook
  10. Update finishedSet (Code): runs custom JavaScript code

…plus 1 more step. See the full node list below.

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

What this workflow does This (set of) workflow(s) shows how to start multiple sub-workflows, asynchronously, in parallel, and then wait for all of them to complete. Normally sub-workflows would need to be run synchronously, in series, or, if they are executed…

Excerpt from Hubschrauber's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.