fix(ocr): sync workflow steps with process_with_ocr replacing legacy azure step
- Update _compute_processing_flow to recognize process_with_ocr as the OCR stage and remap legacy process_with_azure_document_intelligence log entries for backward compatibility - Normalize legacy OCR step name in _compute_step_summary log fallback - Add process_with_ocr to REAL_MAIN_STEPS/REAL_STEPS in step_manager, file_status, and file_queries (keeping legacy name for old DB entries) - Update retry logic in api/files.py to retry failed OCR via process_with_ocr (handles both step names as aliases) - Fix process_document.py to log process_with_ocr as skipped (not azure step) for the local text extraction path Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -476,7 +476,7 @@ def process_document(
|
||||
# Mark OCR as skipped since we extracted text locally
|
||||
log_task_progress(
|
||||
task_id,
|
||||
"process_with_azure_document_intelligence",
|
||||
"process_with_ocr",
|
||||
"skipped",
|
||||
"Local text extraction succeeded, OCR not needed",
|
||||
file_id=file_id,
|
||||
|
||||
Reference in New Issue
Block a user