Fix: queue single document zone OCR runs instead of running them in the request

Rendering and OCR ran inside the HTTP request and could block other
requests for minutes. The action now validates, then queues the bulk
zone OCR operation for the selected file and returns its task id.
This commit is contained in:
stumpylog committed 2026-11-19 15:25:48 -08:00
1 parent a6b81b2d64
commit c5fdba73a1
11 files changed
+379 -483

No files matched your search

+1 -8
View File
@@ -125,15 +125,8 @@ class ZoneOcrReason(StrEnum):
TEMPLATE_FAILED = "template_failed"
class ZoneOcrRunStatus(StrEnum):
"""The overall outcome of a zone OCR run on one document."""
COMPLETED = "completed"
SKIPPED = "skipped"
class ZoneOcrSkipReason(StrEnum):
"""Why a zone OCR run on one document was skipped."""
"""Why a zone OCR run on one document was not queued."""
NO_TEMPLATE = "no_template"