Run your main job on a timer without overlap. A Redis flag works like a lock so only one run happens at a time. Great for long imports, data syncs, and reports that should never double run.
A Schedule Trigger checks every few seconds and reads a status key in Redis. If the key shows idle or is missing, the flow marks it as running, starts the target workflow by ID, and waits for it to finish. When the called job ends, the status flips back to idle. If the key says running, the flow stops early so no duplicate run begins. The status key uses a dynamic name so each workflow controls its own lock. A manual reset path lets you switch the flag back to idle after an outage.
Setup is simple. You need a Redis account and an n8n project. Set your timer interval, enter the ID of the workflow you want to run, and connect the Redis credential. The default interval is 5 seconds but you can change it to fit your load. Expect clean single run behavior, fewer data mistakes from duplicate work, and quick recovery with one click reset. Use it for nightly imports, batch updates, inventory syncs, or any job that must not overlap.