From 0e946a74987ff6d911afb36e4faa8f6b52040792 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Wed, 7 Jan 2026 16:41:18 -0800 Subject: [PATCH] Clarify messageabout number of workers --- src/ocrmypdf/_pipelines/ocr.py | 2 +- src/ocrmypdf/_pipelines/pdf_to_hocr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ocrmypdf/_pipelines/ocr.py b/src/ocrmypdf/_pipelines/ocr.py index a1e8f611..616889cb 100644 --- a/src/ocrmypdf/_pipelines/ocr.py +++ b/src/ocrmypdf/_pipelines/ocr.py @@ -98,7 +98,7 @@ def exec_concurrent(context: PdfContext, executor: Executor) -> Sequence[str]: jobs = options.jobs or available_cpu_count() max_workers = min(len(context.pdfinfo), jobs) if max_workers > 1: - log.info("Start processing %d pages concurrently", max_workers) + log.info("Starting processing with %d workers concurrently", max_workers) sidecars: list[Path | None] = [None] * len(context.pdfinfo) ocrgraft = OcrGrafter(context) diff --git a/src/ocrmypdf/_pipelines/pdf_to_hocr.py b/src/ocrmypdf/_pipelines/pdf_to_hocr.py index 9c076667..f91b0da2 100644 --- a/src/ocrmypdf/_pipelines/pdf_to_hocr.py +++ b/src/ocrmypdf/_pipelines/pdf_to_hocr.py @@ -65,7 +65,7 @@ def exec_pdf_to_hocr(context: PdfContext, executor: Executor) -> None: jobs = options.jobs or available_cpu_count() max_workers = min(len(context.pdfinfo), jobs) if max_workers > 1: - log.info("Start processing %d pages concurrently", max_workers) + log.info("Starting processing with %d workers concurrently", max_workers) executor( use_threads=options.use_threads,