Fix watcher timeout loop — exclude Backups folder, increase timeout to 30min

This commit is contained in:
2026-04-25 16:44:13 +00:00
parent cab3218ce1
commit d765f9398b
+3 -1
View File
@@ -63,7 +63,7 @@ def run_ingestion():
[PYTHON, INGEST_SCRIPT, NEXTCLOUD_PATH], [PYTHON, INGEST_SCRIPT, NEXTCLOUD_PATH],
capture_output=True, capture_output=True,
text=True, text=True,
timeout=600 timeout=1800
) )
if result.returncode == 0: if result.returncode == 0:
# Update state with new mtimes # Update state with new mtimes
@@ -93,6 +93,8 @@ class IngestHandler(FileSystemEventHandler):
return return
if path.name.startswith('.') or path.name.startswith('~$'): if path.name.startswith('.') or path.name.startswith('~$'):
return return
if 'Admin/Backups' in str(path) or 'Backups' in path.parts:
return
self.pending = True self.pending = True
self.last_event = time.time() self.last_event = time.time()