mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-21 04:52:40 +00:00
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:
1 parent
a6b81b2d64
commit
c5fdba73a1
11 files changed
+379
-483
No files matched your search
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user