semaphore

n8n node for semaphore synchronization with counter management, brought to you by Acceliance

Package Information

Downloads: 6 weekly / 54 monthly
Latest Version: 1.0.9
Author: José Torres

Documentation

@acceliance/n8n-nodes-semaphore

This is an n8n community node that provides semaphore functionality for workflow synchronization. Brought to you by Acceliance.

Features

  • Create Semaphore: Initialize a semaphore with a specific counter value
  • Wait: Block execution until the semaphore counter reaches zero
  • Decrement: Decrease the semaphore counter by 1
  • Live Counter Display: Shows the current counter value in the n8n UI

Installation

Community Nodes (Recommended)

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter @acceliance/n8n-nodes-semaphore in Enter npm package name
  4. Agree to the risks and click Install

Manual Installation

npm install @acceliance/n8n-nodes-semaphore

Usage

The Semaphore node allows you to synchronize parallel workflow executions by using a counter-based semaphore.

Operations

  1. Create: Initialize a new semaphore with a counter value
  2. Wait: Wait for the semaphore counter to reach zero (blocking operation)
  3. Decrement: Decrease the counter by 1

Example Workflow

[Trigger] -> [Semaphore: Create (count=3)] -> [Split in Batches]
                                                    |
                                  +----------------+----------------+
                                  |                |                |
                            [Process 1]      [Process 2]      [Process 3]
                                  |                |                |
                            [Decrement]      [Decrement]      [Decrement]
                                  |                |                |
                                  +--------> [Wait] <---------+
                                                |
                                           [Continue...]

License

MIT

Discussion