corpus_integrity.py: write unreadables with retry_count=0 so OCR can retry when it ships
This commit is contained in:
@@ -200,7 +200,7 @@ def run_reconciliation(fix=False):
|
|||||||
cur = pg.cursor()
|
cur = pg.cursor()
|
||||||
cur.execute("""
|
cur.execute("""
|
||||||
INSERT INTO ingest_failures (source, filepath, error, retry_count, first_failed_at, last_failed_at)
|
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
|
ON CONFLICT (source) DO UPDATE SET
|
||||||
error = EXCLUDED.error,
|
error = EXCLUDED.error,
|
||||||
last_failed_at = NOW()
|
last_failed_at = NOW()
|
||||||
|
|||||||
Reference in New Issue
Block a user