Automation library · Integrations

Prevent concurrent workflow runs with Redis

Started by an event in a connected app, and works across Redis. 31 steps, 5 branches, 4 loops or waits: large, and worth reading before you trust it with anything live.

Large

31 stepsLarge: read it before trusting it with anything live
5Branches: places the flow splits
4Loops or waits
1Service it connects to

The flow

Starts it 2Logic 26Service 3

The steps in the order they run, from what starts it.

  1. 1When Executed by Another WorkflowExecute Workflow triggerStarts it
  2. 2When clicking ‘Test workflow’Manual triggerStarts it
  3. 3Is Workflow ActiveExecute WorkflowLogic
  4. 4Set Workflow ActiveExecute WorkflowLogic
  5. 5Set Workflow FinishedExecute WorkflowLogic
  6. 6Is Workflow Active1Execute WorkflowLogic
  7. 7Is Workflow Active2Execute WorkflowLogic
  8. 8Is Workflow Active3Execute WorkflowLogic
  9. 9Set TimeoutSetLogic
  10. 10If2IfLogic
  11. 11IfIfLogic
  12. 12If1IfLogic
  13. 13Switch1SwitchLogic
  14. 14SwitchSwitchLogic
  15. 15Set Workflow Active1Execute WorkflowLogic
  16. 16Stop and ErrorStop And ErrorLogic
  17. 17Set Workflow "started"Execute WorkflowLogic
  18. 18Stop and Error1Stop And ErrorLogic
  19. 19Get KeyRedisService
  20. 20Set KeyRedisService
  21. 21UnSet KeyRedisService
  22. 22No Operation, do nothingNo OpLogic
  23. 23Wait1WaitLogic
  24. 24set continueSetLogic
  25. 25WaitWaitLogic
  26. 26Set Workflow "loading"Execute WorkflowLogic
  27. 27Set Workflow Finished1Execute WorkflowLogic
  28. 28Wait2WaitLogic
  29. 29Set Workflow "finishing"Execute WorkflowLogic
  30. 30Wait3WaitLogic
  31. 31Set Workflow Finished2Execute WorkflowLogic

How it's built

Starts on
An event in a connected app
Steps
31, with 5 branches, 4 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Redis
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Redis account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 31 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 31 steps before you point it at anything that matters.