This commit is contained in:
@@ -651,6 +651,9 @@ def _run_auto_map_job(job_id: str, ctx: ExamContext, template_id: str, pdf_bytes
|
||||
_set_auto_map_status(job_id, {"status": "running", "template_id": template_id})
|
||||
try:
|
||||
rows = _run_auto_map_merge(ctx, template_id, pdf_bytes, source_label)
|
||||
# Project to Neo4j like the born-digital fast path does — otherwise image-only papers (R3's
|
||||
# primary target, routed here because they need OCR) never reach the graph after auto-map.
|
||||
project_template_safe(template_id)
|
||||
_set_auto_map_status(job_id, {"status": "completed", "template_id": template_id, "counts": {k: len(v) for k, v in rows.items()}})
|
||||
except Exception as exc:
|
||||
logger.exception(f"auto-map job failed for template {template_id}: {exc}")
|
||||
|
||||
Reference in New Issue
Block a user