This n8n workflow is designed to manage and prevent concurrent execution of processes using Redis for state tracking. Its primary goal is to ensure that multiple instances of the same workflow do not run simultaneously, reducing potential conflicts or resource contention. The workflow begins with a trigger that can be activated manually or by another workflow, checking Redis for a specific key to determine if an instance is already running. If the process is not active, it sets a Redis key with a timeout, indicating the workflow is in progress. Several nodes mark the start, progress, and completion of the workflow through Redis key management and workflow execution nodes, providing real-time status updates. Sticky notes serve as visual cues to document each step, making it easier to understand the process flow. The workflow also includes error handling to stop execution if a process is already active, ensuring robust control. This setup is particularly useful in scenarios where resource serialisation is critical, such as scheduled jobs, API rate limiting, or critical processes that must not overlap.
Redis-Based Workflow Concurrency Control and Monitoring
Node Count | >20 Nodes |
---|---|
Nodes Used | executeWorkflow, executeWorkflowTrigger, if, manualTrigger, noOp, redis, set, stickyNote, stopAndError, switch, wait |
Reviews
There are no reviews yet.