From 7bad4a4fa9a7d4ef26f537499c4ab8f6088f62eb Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Fri, 17 Apr 2026 22:52:01 -0700 Subject: [PATCH] Stop auto-import retrying failed/unidentified items every scan cycle Items with status needs_identification, failed, or rejected were not in the skip list, causing them to be re-scanned and re-logged every 60 seconds indefinitely. Now skips all terminal statuses. --- core/auto_import_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/auto_import_worker.py b/core/auto_import_worker.py index d9dc934c..f632ba26 100644 --- a/core/auto_import_worker.py +++ b/core/auto_import_worker.py @@ -433,7 +433,7 @@ class AutoImportWorker: (folder_hash,)) row = cursor.fetchone() conn.close() - return row and row['status'] in ('completed', 'pending_review') + return row and row['status'] in ('completed', 'pending_review', 'needs_identification', 'failed', 'rejected') except Exception: return False