npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tiger21/n8n-nodes-waitforexecutions

v0.2.9

Published

n8n node to wait for executions to finish

Downloads

65

Readme

⏳ n8n-nodes-waitforexecutions

A robust n8n Community Node for orchestrating and synchronizing sub-workflow executions. This node waits for one or more sub-workflow executions to complete, supports retry and timeout logic, and routes items based on execution status.

License: MIT

✨ Features

⏱️ Wait For Executions Node

  • Sub-Workflow Synchronization: Waits for one or multiple sub-workflow executions to finish before proceeding.
  • Configurable Retry & Timeout: Set retry limits and execution timeouts for robust error handling.
  • Multi-Output Routing: Routes items to done or failed outputs based on execution status.
  • API Integration: Uses n8n API credentials to fetch execution status and results.
  • Detailed Error Reporting: Provides clear error messages and output data for failed executions.
  • TypeScript Support: Full type safety and IntelliSense.

🚦 True Parallelism in n8n Queue Mode

To truly get parallelization out of n8n queue mode, your main workflow must continue execution without waiting for all sub-executions to complete. However, the standard "Execute Sub-Workflow" node triggers executions sequentially—waiting for each to finish before starting the next. This means you only ever have one new execution at a time, underutilizing available worker nodes.

If you set "Wait for Completion" to false, all sub-workflows are triggered at once, maximizing worker usage. But then, your main workflow can't access the sub-workflow outputs directly.

WaitForExecutions solves this problem.
Place it after "Execute Sub-Workflow" (with "Wait for Completion" = false). This node checks the status of each execution and waits for all executions to either complete or fail (including timeout/retry logic). It will keep polling at the configured interval until all executions are resolved, then outputs all items to either the done or failed outputs. The node itself handles waiting and polling internally.

This approach allows you to fully utilize n8n's queue mode and all available workers, making your workflows much more powerful and efficient.

📦 Installation

Install the node using n8n's Community Nodes feature:

  1. Via n8n Interface:

    • Go to SettingsCommunity Nodes
    • Install package: @tiger21/n8n-nodes-waitforexecutions
  2. Via npm (for self-hosted n8n):

    npm install @tiger21/n8n-nodes-waitforexecutions

For more details, see the n8n Community Nodes documentation.

🚀 Usage

Problem Solved

  • Wait for all sub-executions to complete before proceeding.
  • Retry status checks with configurable limits.
  • Fail gracefully if executions error, crash, or timeout.
  • Achieve true parallelism in queue mode by polling for completion.

Basic Usage

  1. Trigger sub-workflows using the "Execute Sub-Workflow" node with "Wait for Completion" set to false.
  2. Pass execution IDs to the WaitForExecutions node:
    • You can provide execution_id directly in the item's JSON (item.json.execution_id).
    • If not provided, the node will look for item.metadata.subExecution.executionId which is where "Execute Sub-workflow" node places the executionId.
  3. Configure retry and timeout parameters as needed.
  4. Connect outputs:
    • done: All executions completed successfully.
    • failed: One or more executions failed or timed out.

Output Structure

  • execution_id: The sub-execution ID (from input or metadata).
  • execution_output: The result data or error details.

execution_output: The result data or error details.

Example:
  "execution_id": "12345",
  "execution_output": {
    "data": { ... }, // Result data if successful
    "error": "Execution with ID 12345 failed. Status: error"
  }
}

⚙️ Configuration

Parameters

| Parameter | Type | Default | Description | |----------------------------|---------|---------|-----------------------------------------------------------------------------| | Wait (Seconds) | Number | 5 | Number of seconds to wait before re-checking the status of executions | | Retry Limit | Number | 0 | Number of status checks before considering an execution failed (0 = infinite)| | Execution Timeout (s) | Number | 0 | Maximum time (in seconds) to wait for an execution before failing (0 = ignore)|

💡 Use Cases

1. Orchestrating Parallel Sub-Workflows

Start Sub-Workflow 1 ──┐
Start Sub-Workflow 2 ──┤── [WaitForExecutions] ──> Continue Processing
Start Sub-Workflow 3 ──┘

2. Batch Processing with Error Handling

  • Wait for all batch jobs to finish, rechecking status as needed, and handle failures gracefully.

3. Timeout-Sensitive Automation

  • Ensure downstream steps only proceed if all sub-workflows complete within a set time.

🔧 Development

Prerequisites

  • Node.js 20+
  • npm 8+
  • n8n development environment

Setup

	 Setup
# Clone the repository
git clone https://github.com/TIGER21-LLC/n8n-nodes-waitforexecutions.git
cd n8n-nodes-waitforexecutions

# Install dependencies
npm install

# Build and run in dev mode

Project Structure

Project Structure
n8n-nodes-waitforexecutions/
├── nodes/
│   └── WaitForExecutions/
│       ├── WaitForExecutions.node.ts   # Main node implementation
│       └── WaitForExecutions.node.json # Node metadata
├── dist/
├── test/
├── gulpfile.js

🤝 Contributing

🤝 Contributing

Development Workflow

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run build and tests: npm run build:test
  5. Submit a pull request

🐛 Troubleshooting

Common Issues

❌ "No sub-execution ID found" Error

  • Ensure each input item contains a valid sub-execution ID in its metadata. AKA make sure "Execute Sub-Workflow" node immediately precedes this node in the workflow.

❌ Timeout or Retry Failures

  • Increase the retry limit or timeout value in node configuration.
  • Check that sub-workflows are running and reachable via the n8n API.

❌ API Authentication Errors

  • Verify that n8n API credentials are correctly configured. For base url, use the n8n instance URL with API prefix (e.g., http://localhost:5678/api/v1).

📚 Resources

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Built for the n8n automation platform
  • Inspired by the need for robust sub-workflow orchestration and true parallelism in n8n

Made with ❤️ for the n8n community