From 372aa299be5e9e72f072f154ea42d4aacc566860 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin Date: Thu, 18 Dec 2025 16:03:10 +0100 Subject: [PATCH] Fixed reload-loop. --- taskiq/cli/watcher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/taskiq/cli/watcher.py b/taskiq/cli/watcher.py index 27d35ae8..e0ac0e22 100644 --- a/taskiq/cli/watcher.py +++ b/taskiq/cli/watcher.py @@ -37,10 +37,12 @@ def dispatch(self, event: FileSystemEvent) -> None: """ if event.is_directory: return - if event.event_type in {"opened", "closed"}: + if event.event_type in {"opened", "closed", "closed_no_write"}: return + if ".git" in event.src_path: return + try: if self.gitignore and self.gitignore(event.src_path): return