Prevent Concurrent Workflow Runs Using Redis
detail.loadingPreview
This workflow prevents multiple instances of itself from running simultaneously by using a Redis key.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow acts as a gatekeeper to prevent concurrent executions of another workflow. It leverages Redis to store a key that signifies whether the target workflow is currently active. When the workflow is triggered, it first checks if the Redis key exists. If it doesn't, it sets the key and proceeds. If the key does exist, it means another instance is already running, and the current execution is stopped.
Key Features
- Checks for existing Redis key to prevent concurrency.
- Sets a Redis key when starting a protected workflow.
- Unsets the Redis key when the protected workflow finishes.
- Customizable key and value for tracking.
How To Use
- Configure Redis Credentials: Ensure your n8n instance has access to a Redis instance.
- Set Workflow ID: In the
Is Workflow Active,Set Workflow Active, andSet Workflow Finishednodes, replaceFx8Ov5MblG2cmRWRwith the actual ID of the workflow you want to protect. - Define Key and Action: When calling this workflow from another workflow or manually:
key: Provide a unique string to identify the workflow instance (e.g.,my_processing_job).action: Usegetto check,setto mark as active, andunsetto mark as finished.value(optional, for 'set' action): You can specify a value to store, likeworkingor a timestamp.
Apps Used
Workflow JSON
{
"id": "f4765f5b-bf44-45cf-8e67-1631ed676b7e",
"name": "Prevent Concurrent Workflow Runs Using Redis",
"nodes": 0,
"category": "Stop and Error",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: f4765f5b-bf44...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Verification Info
Related Integrations
- Execute Workflow Trigger + Redis(16 workflows)
- Redis + Split Out(16 workflows)
- Redis + Schedule Trigger(14 workflows)
- Google Sheets + Redis(11 workflows)
- Form Trigger + Redis(10 workflows)
- Form + Redis(10 workflows)
- Redis + Telegram Trigger(8 workflows)
- Redis + Telegram(7 workflows)
- Microsoft Teams + Redis(6 workflows)
- Execution Data + Redis(6 workflows)
Related Workflows
Discover more workflows you might like
Telegram Profanity & Toxicity Filter
This n8n workflow automatically monitors incoming Telegram messages for profanity and toxic language. It leverages Google's Perspective API to analyze message content, and if a message is deemed inappropriate, the workflow sends an automated warning response back to the sender.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
AI-Powered Abandoned Cart Recovery & Nurturing
This n8n workflow intelligently identifies customers who've abandoned their shopping carts, leverages AI to craft personalized recovery emails, and automatically sends them. It then logs all activity to Google Sheets for seamless tracking and optimization of your sales recovery efforts.
AI-Powered Amazon Competitor Review Analysis
Automate competitor insights by scraping Amazon product reviews, storing them in Google Sheets, and leveraging AI for intelligent summarization. This workflow provides a seamless solution to stay ahead of the competition and inform your product strategy with real-time customer feedback.
Smart Expense Tracking with Telegram & AI
Automate your personal finance management by turning your Telegram chat into an intelligent expense tracker. Simply send a photo of a receipt or a text message, and this workflow uses AI to categorize your spending, extract crucial details, and provide instant summaries.
AI-Powered Accounts Receivable Reporting for Sabre EDI
This n8n workflow automates the extraction of Accounts Receivable (AR) data from complex Sabre EDI (Interface User Record) files stored in Google Drive. It leverages an AI agent, powered by OpenAI, to intelligently process financial information and generate structured AR reports. The workflow ensures accuracy by utilizing a Pinecone vector database for contextual understanding of EDI guidelines.