Prevent simultaneous workflow executions with Redis
Purpose This ensures that executions of scheduled workflows do not overlap when they take longer than expected. How it works - This is a separate workflow wh...
🔌 Nodes & Integrations Used (1)
📖 Implementation & Setup Guide
Purpose This ensures that executions of scheduled workflows do not overlap when they take longer than expected.
How it works - This is a separate workflow which monitors the execution of the main workflow - Stores a flag in Redis (key dynamically named after workflow ID) which indicates if the main workflow is running or idle - The TTL setting ensures that the flag will also be removed automatically when the workflow hits the defined timeout - Only calls the main workflow if the last execution has finished
Setup - Update the interval in the Schedule Trigger - Turn your main workflow into a sub-workflow by adding an **Execute Workflow Trigger** - Set a reasonable timeout for that sub-workflow - Set the same timeout (seconds) in the TTL option of the **Set Flag** node - Select the right sub-workflow in the **Execute Workflow** node - Publish the workflow
Customization - Duplicate the **Execute Workflow** node and select another workflow you would like to run sequentially, then replace the placeholder node underneath with it - Make sure to set a timeout for that other workflow as well and then update the TTL value in the Redis node to the sum of all workflow timeouts - You can add as many workflow calls as you want, just make sure they are neatly organized below each other in one line to guarantee the right execution order
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Prevent simultaneous workflow executions with Redis.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related DevOps & GitHub Workflows
View All in DevOps & GitHub →Generate Google Doc Proposal
Production-ready n8n automation template for Generate Google Doc Proposal built by AhiXLight. Seamlessly connects Execute Workflow Trigger, Google Drive, OpenAI with 7 configured nodes.
Add a new lead to Pipedrive once GitHub repo is forked
This workflow automatically adds a new lead to Pipedrive once someone forks your GitHub repository. Prerequisites - Pipedrive account and Pipedrive credentia...
Add the affiliate to a program automatically
This workflow allows you to create an affiliate, add metadata, and add the affiliate to a program. !workflow-screenshot Tapfiliate node: This node allows you...
Add a note to Pipedrive s contact once PR is added on GitHub
This workflow automatically adds a note of the PR from GitHub to the Pipedrive contact if their GitHub email matches a Person in Pipedrive. Prerequisites - P...