Skip to content

feat: add OCR-specific concurrency control for batch processing#8

Merged
atsyplenkov merged 3 commits intomainfrom
feat/ocr-workers-queue
Mar 25, 2026
Merged

feat: add OCR-specific concurrency control for batch processing#8
atsyplenkov merged 3 commits intomainfrom
feat/ocr-workers-queue

Conversation

@atsyplenkov
Copy link
Copy Markdown
Owner

@atsyplenkov atsyplenkov commented Mar 25, 2026

Summary

  • add --ocr-workers (default 2) and keep --workers default 32
  • cap OCR API concurrency with an async limiter while preserving broader batch parallelism
  • improve HTTP 429 OCR failure messaging with actionable guidance and update docs/tests

Closes #7.

Test Plan

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features
  • cargo test
  • cargo test --features internal-testing --test core_internal

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 92.48120% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.26%. Comparing base (b9576c7) to head (e100965).

Files with missing lines Patch % Lines
src/core.rs 89.83% 6 Missing ⚠️
src/core/ocr.rs 91.30% 4 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #8      +/-   ##
==========================================
+ Coverage   83.97%   85.26%   +1.28%     
==========================================
  Files           9        9              
  Lines        1629     1751     +122     
==========================================
+ Hits         1368     1493     +125     
+ Misses        261      258       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@atsyplenkov atsyplenkov merged commit e8c8d21 into main Mar 25, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rate limit

2 participants