You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FileWatcher only looks for .gitignore in watched directory, not project root #591
When using --reload-dir with a subdirectory in a monorepo, the FileWatcher triggers an infinite reload loop because it only looks for .gitignore in the watched directory itself, not in the project root.
Root cause: In taskiq/cli/watcher.py, the FileWatcher constructor does:
It looks for .gitignore at back/domains/.gitignore (which doesn't exist) instead of the project root .gitignore. Since no gitignore is loaded, Python's __pycache__ directories and .pyc files trigger reload events, creating an infinite loop.
Expected behavior: FileWatcher should walk up the directory tree to find .gitignore files, similar to how git itself works. Many tools (git, ripgrep, etc.) search parent directories for config files.
Current workaround: Use watchmedo from the watchdog package instead:
[Task] Sending task=...
[FileWatcher] Reloading due to change in back/domains/__pycache__/tasks.cpython-314.pyc
[Task] Sending task=...
[FileWatcher] Reloading due to change in back/domains/__pycache__/tasks.cpython-314.pyc
... (infinite loop)
Activity