Prevent simultaneous workflow executions with Redis

Węzły

5ed6563d-c9a0-4665-ba05-812a04ee074d

Kategorie

Tagi

Stworzone przez

MaMario

Ostatnio edytowane 8 dni temu

Purpose

This ensures that executions of scheduled workflows do not overlap when they take longer than expected.

How it works

  • This is a separate workflow which monitors the execution of the main workflow
  • Stores a flag in Redis (key dynamically named after workflow ID) which indicates if the main workflow is running or idle
  • Only calls the main workflow if the last execution has finished

Setup

  • Update the credentials suitable for your Redis instance
  • Replace the Schedule Trigger of your main workflow by an Execute Workflow Trigger
  • Copy the workflow ID from the URL
  • Paste the workflow ID in the Execute Workflow Node of this workflow
  • Configure the Schedule Trigger Node

Nowy w Świecie n8n?

Potrzebujesz pomocy przy budowie nowych schematów n8n? Automatyzajce procesów dla Ciebie lub Twojej firmy pozwolą oszczędzić ci czas i pieniądze, a do tego bez żadnych kosztów!