Fix callback worker

This commit is contained in:
2026-09-25 09:30:26 +07:00
parent 79b70bed12
commit 65c4f44e28
5 changed files with 58 additions and 7 deletions

View File

@@ -25,6 +25,7 @@ class Settings:
max_kie_attempts: int = int(os.getenv("IDP_MAX_KIE_ATTEMPTS", "3"))
run_worker: bool = os.getenv("IDP_RUN_WORKER", "0").lower() in ("1", "true", "yes")
ocr_workers: int = int(os.getenv("IDP_OCR_WORKERS", "64"))
callback_workers: int = int(os.getenv("IDP_CALLBACK_WORKERS", "4"))
max_queued_jobs: int = int(os.getenv("IDP_MAX_QUEUED_JOBS", "1000"))
max_pdf_bytes: int = int(os.getenv("IDP_MAX_PDF_BYTES", str(1024**3)))
max_pages: int = int(os.getenv("IDP_MAX_PAGES", "5000"))