From 36ecb8587d418ba1c915dd857a94c162156c701a Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 13 Nov 2024 07:18:21 -0800 Subject: [PATCH] Fix: prevent duplicate workflow runs (#8268) --- src/documents/signals/handlers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.py index 73aee2936..114654c64 100644 --- a/src/documents/signals/handlers.py +++ b/src/documents/signals/handlers.py @@ -886,6 +886,7 @@ def run_workflows( "triggers", ) .order_by("order") + .distinct() ) for workflow in workflows: