Templates / Prevent duplicate processing with Redis item state tracking

Prevent duplicate processing with Redis item state tracking

Ready for 3.0

by Stephan Koning ✓ · 220 views · created 2025-08-02 · Engineering

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 17 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects Redis and Google Sheets.

How it runs

Trigger: When another workflow calls it (plus 1 other trigger).

  1. Set: Context for Response (Edit Fields (Set)): sets 4 fields: fullKey, itemId, TTL…
  2. Parse Log Message (Code): runs custom JavaScript code
  3. Switch: routes items into 4 branches
  4. redis-audit-log (Google Sheets): append
  5. Redis: get
  6. Redis: set
  7. Redis: delete
  8. Redis: set
  9. Handle Invalid Action (Stop and Error): stops the run with an error
  10. Set CHECK Output (Edit Fields (Set)): sets 3 fields: success, isMember, itemId

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

Services it uses

RedisGoogle Sheets

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

I built this tool because we faced a real, recurring problem: managing hundreds of client projects in a weekly automated loop. There was a time when a single error in that process could create a complete data mess, forcing us to manually clean and re-run…

Excerpt from Stephan Koning'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.