Templates / Redis locking for concurrent task handling

Redis locking for concurrent task handling

Ready for 3.0

by Geoffrey Saxena · 831 views · created 2025-04-06 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 14 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Redis.

How it runs

Trigger: When an HTTP GET request hits its webhook URL.

  1. Fetch Webhook Data & Declare lockValue (Code): runs custom JavaScript code
  2. Check Redis Lock (Redis): get
  3. redisLock existence boolean (If): checks a condition and branches into true / false
  4. Acquire Redis Lock (Redis): set
  5. redisLock acquired booleans (If): checks a condition and branches into true / false
  6. Workflow Switch (Switch): routes items into 3 branches
  7. Poll for lock (Wait): pauses before continuing
  8. Workflow (Edit Fields (Set)): sets or maps fields
  9. Workflow (Edit Fields (Set)): sets or maps fields
  10. Workflow (Edit Fields (Set)): sets or maps fields

…plus 2 more steps. See the full node list below.

Services it uses

Redis

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

👤 Who is this for? This workflow is great for n8n users who want to prevent duplicate or overlapping workflow runs. If you're a developer, DevOps engineer, or automation enthusiast managing tasks like database updates, syncing tools, or hitting rate-limited…

Excerpt from Geoffrey Saxena's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.