Skip to content

Implement --num-threads concurrency for image processing #3

Description

@adinschmidt

Summary

The CLI exposes --num-threads, but the value is currently unused, and processing is sequential.

Proposed change

  • Use tokio concurrency primitives (e.g. Semaphore + JoinSet or FuturesUnordered) to process images in parallel.
  • Respect --num-threads as the maximum concurrent in-flight OCR+embedding tasks.

Acceptance criteria

  • --num-threads caps concurrency deterministically
  • Default behavior matches current docs/help text (e.g. num CPUs)
  • No new panics; errors are logged per-file as today

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions