Workaround for the OCR task-inside-task issue
Thanks to Jakob Haufe (@sur5r) for the solution. https://gitlab.com/sur5r/mayan-edms/commit/2423254aa4fd85c4420b59f846c05b1a89f5ee99 Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -35,7 +35,7 @@ class DocumentPageOCRContentManager(models.Manager):
|
||||
)
|
||||
)
|
||||
|
||||
cache_filename = task.get(timeout=DOCUMENT_IMAGE_TASK_TIMEOUT)
|
||||
cache_filename = task.get(timeout=DOCUMENT_IMAGE_TASK_TIMEOUT, disable_sync_subtasks=False)
|
||||
|
||||
with document_page.cache_partition.get_file(filename=cache_filename).open() as file_object:
|
||||
document_page_content, created = DocumentPageOCRContent.objects.get_or_create(
|
||||
|
||||
Reference in New Issue
Block a user