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.
This commit is contained in:
Broque Thomas 2026-04-17 22:52:01 -07:00
parent 0b13a9d886
commit 7bad4a4fa9

View file

@ -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