Library / Building Blocks & Utilities
Building Blocks & Utilities
Prevent Concurrent Workflow Runs with Redis Locks
When called by another workflow, it uses a Redis key to mark a run as started or finished so duplicate parallel executions can be blocked.
What it does
## Set workflow start Inputs: - action -> "set" - key -> a string used for tracking - value -> "working" by default but you can use whatever, you can use this multiple times in combination with get to track progress of a execution. * Remove unused inputs when calling workflow *
The steps
- When Executed by Another Workflow
- Switch
- When clicking ‘Test workflow’
- If2
- Is Workflow Active
- Set Workflow Active
- Set Workflow Finished
- Get Key
- Set Key
- UnSet Key
- Set Timeout
- set continue
- If
- Is Workflow Active1
31 steps in total.
Similar automations
Building Blocks & UtilitiesPrevent Concurrent Workflow Runs Using Redis32 stepsBuilding Blocks & UtilitiesPrevent Duplicate Webhook Runs with a Redis Lock24 stepsBuilding Blocks & UtilitiesPrevent Concurrent Runs with Redis Locking14 stepsBuilding Blocks & UtilitiesPrevent Overlapping Scheduled Runs with a Redis Lock10 steps