AutomationMart
Home/Browse/Prevent concurrent workflow runs using Redis
n8n

Prevent concurrent workflow runs using Redis

n8nn8n31 modulesv1.0
SlackTelegram

What does this template do? This workflow sets a small "lock" value in Redis so that only one copy of a long job can run at the same time. If another trigger fires while the job is still busy, the workflow sees the lock, stops early, and throws a clear error. This protects your data and keeps you from hitting rate limits. Because the workflow also stores simple progress flags ("working", "loading", "finishing"), you can poll the current status and show live progress for very long jobs. Use Cas

At a glance

Prevent concurrent workflow runs using Redis is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Slack, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Slack, Telegram
Modules
31
Price
Free
Version
v1.0
Prevent concurrent workflow runs using Redis workflow diagram

About this workflow

What does this template do? This workflow sets a small "lock" value in Redis so that only one copy of a long job can run at the same time. If another trigger fires while the job is still busy, the workflow sees the lock, stops early, and throws a clear error. This protects your data and keeps you from hitting rate limits. Because the workflow also stores simple progress flags ("working", "loading", "finishing"), you can poll the current status and show live progress for very long jobs. Use Case Great when the same workflow can be called many times in parallel (for example by webhooks, cron jobs, or nested Execute Workflow calls) and you need an "only run once at a time" guarantee without building a full queue system. What the Workflow Does - ⚡ Starts through Execute Workflow Trigger called by another workflow - 🔄 A Switch sends the run to Get, Set, or Unset actions - 💾 Redis reads or writes a key named processstatus<key> with a time‑to‑live (default 600 s) - 🚦 If nodes check the key and decide to continue or stop - ⏱️ Wait nodes stand in for the slow part of your job (replace these with your real work) - 📈 Updates the key with human‑readable progress values that another workflow can fetch with action = get - 🏁 When done, the lock is removed so the next run can start Apps & Services Used - Redis - Core n8n nodes (Switch, If, Set, Wait, Stop and Error) Pre‑requisites - A Redis server that n8n can reach - Redis credentials stored in n8n - A second workflow that calls this one and sends: - action set to get, set, or unset - key set to a unique name for the job - Optional timeout in seconds Customization Tips - Increase or decrease the TTL in the Set Timeout node to match how long your job usually runs - Add or rename status values ("working", "loading", "finishing", and so on) to show finer progress - Replace Stop and Error with a Slack or email alert, or even push the extra trigger into a queue if you prefer waiting instead of failing - Use different Redis keys if you need separate locks for different tasks - Build a small "status endpoint" workflow that calls this one with action = get to display real‑time progress to users Additional Use Cases 🛑 Telegram callback spam filter If a Telegram bot sends many identical callbacks in a burst, call this workflow first to place a lock. Only the first callback will proceed; the rest will exit cleanly until the lock clears. This keeps your bot from flooding downstream APIs. 🧩 External API rate‑limit protection Run heavy API syncs one after the other so parallel calls do not break vendor rate limits. 🔔 Maintenance window lock Block scheduled maintenance tasks from overlapping, making sure each window finishes before the next starts.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Automated sales follow-up system using HighLevel, Gmail, Slack & Google Sheets

Description: This workflow automates sales contact follow-ups and engagement tracking by integrating HighLevel CRM, Gmail, Slack, and Google Sheets. It fetches all contacts from HighLevel, filters inactive contacts, sends personalized follow-up emails, checks for responses, and notifies the sales team accordingly. It eliminates manual follow-up tracking, ensures timely outreach, and provides real-time notifications — helping sales teams maintain engagement, respond promptly, and improve le

Free

Automated press pass verification & badge creation with QR codes & multi-channel distribution

Verified Press Pass Generator for Media Events Automate press credential verification and badge generation for journalists covering your events --- 📝 Description Streamline your event media management with this comprehensive press pass automation. When journalists apply for credentials, this workflow instantly validates their identity, verifies their media affiliation, generates professional digital badges with QR codes, and delivers everything via email—all within seconds. Perfe

Free

Send a Telegram message for every new article from RSS feed

Automatically send a Telegram message for every new article detected in your RSS feed. Keep your audience updated with fresh content instantly.

Free

Stock market analysis & prediction with GPT, Claude & Gemini via Telegram

Introduction Automates stock market analysis using multiple AI models to predict trends, analyze sentiment, and generate consensus-based investment insights. For traders and analysts seeking data-driven forecasts by eliminating manual research and combining AI perspectives for accurate predictions. How It Works Daily trigger fetches stock data, news, ratings, and sentiment → AI models analyze each source → OpenAI generates report → Three AI validators (OpenAI, Anthropic, Gemini) cross-ve

Free

Route and nurture financial services leads with OpenAI, Gmail and Google Sheets

Financial services lead magnet with Lovable/Base44 and n8n Automatically route and nurture leads for Business Funding, Life Insurance, Credit Repair, and Agent Recruitment with hyper-personalized AI-generated emails. How it works 1. Lead Capture via Webhook Your landing page submits lead data (name, email, phone, interest, service-specific details) to the workflow webhook. 2. Intelligent Routing by Interest Switch node routes leads to the appropriate path based on their selected service interest

Free

Send Slack messages for new Streak boxes

Every time a new box is created in Streak, Make will automatically send a message in Slack.

Free

MCP AI agent Google Calendar - create, update & manage events

Hi! I’m Amanda :) 💖 I created this sweet little workflow with lots of love and care, just for you who wants to manage your Google Calendar in a smart and gentle way 💌 This AI-powered agent connects with MCP (Multi-Channel Protocol) and understands natural language like “book a meeting tomorrow at 3pm”, “reschedule my call to Monday”, or “what events do I have on Wednesday?” — and it does everything quietly and beautifully in your calendar 🧸 --- 💡 What this lovely agent does - 🗓️ Creates new eve

Free

Website downtime alert via LINE + Supabase log

This workflow automatically checks the status of your websites using UptimeRobot API. If any site is down or unstable, it will: - Generate a natural-language alert message using GPT-4o - Push the message to a LINE group (with funny IT-style encouragement) - Log all DOWN status entries into your Supabase database - Wait 30 minutes before repeating 🔧 How It Works 1. Schedule Trigger – Runs on a fixed interval (every few minutes). 2. UptimeRobot Node – Fetches website monitor data. 3. Code Node (Fi

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free