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:
parent
0b13a9d886
commit
7bad4a4fa9
1 changed files with 1 additions and 1 deletions
|
|
@ -433,7 +433,7 @@ class AutoImportWorker:
|
||||||
(folder_hash,))
|
(folder_hash,))
|
||||||
row = cursor.fetchone()
|
row = cursor.fetchone()
|
||||||
conn.close()
|
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:
|
except Exception:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue