fix(batch-dedup): don't crash on FK violation in _write_review
Stale UUIDs in the Qdrant dedup collection can reference controls that were deprecated in earlier batches. Log warning and continue instead of raising and killing the entire job. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -606,9 +606,9 @@ class BatchDedupRunner:
|
||||
})
|
||||
self.db.commit()
|
||||
except Exception as e:
|
||||
logger.error("BatchDedup _write_review error: %s", e)
|
||||
logger.warning("BatchDedup _write_review skipped (FK or other error): %s", e)
|
||||
self.db.rollback()
|
||||
raise
|
||||
self.stats["errors"] += 1
|
||||
|
||||
# ── Progress ─────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user