corpus_integrity.py: write unreadables with retry_count=0 so OCR can retry when it ships

This commit is contained in:
2026-04-30 22:03:48 +00:00
parent 7822fb1cc1
commit 25e42c0231
+1 -1
View File
@@ -200,7 +200,7 @@ def run_reconciliation(fix=False):
cur = pg.cursor()
cur.execute("""
INSERT INTO ingest_failures (source, filepath, error, retry_count, first_failed_at, last_failed_at)
VALUES (%s, %s, %s, 2, NOW(), NOW())
VALUES (%s, %s, %s, 0, NOW(), NOW())
ON CONFLICT (source) DO UPDATE SET
error = EXCLUDED.error,
last_failed_at = NOW()