Skip to content

feat: parallelized cli batch processing - #10

Merged
404Simon merged 8 commits into
mainfrom
parallelized-batch-processing
Jun 1, 2026
Merged

feat: parallelized cli batch processing#10
404Simon merged 8 commits into
mainfrom
parallelized-batch-processing

Conversation

@404Simon

@404Simon 404Simon commented Jun 1, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR parallelizes the vesskel run CLI batch workflow by introducing a multiprocessing worker module and a --jobs/-j flag, while also adding a regression test to ensure shell completions exit without importing heavy modules.

Changes:

  • Add --jobs/-j to control parallel worker count for batch runs (with a serial fallback).
  • Factor batch I/O + per-file processing into a new vesskel/_batch.py worker module for ProcessPoolExecutor.
  • Add a test to ensure CLI shell completions do not import heavy modules (numpy/PIL/pipeline).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
vesskel/cli.py Adds --jobs, moves heavy work behind runtime imports, and introduces a parallel execution path.
vesskel/_batch.py New module containing image loading, output writing helpers, and the per-image worker used by multiprocessing.
tests/test_cli.py Updates tests to import batch helpers from _batch and adds a completion-speed/heavy-import guard test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vesskel/cli.py
Comment thread vesskel/cli.py
Comment thread vesskel/_batch.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread tests/test_cli.py
Comment thread vesskel/cli.py
Comment thread vesskel/cli.py
@404Simon
404Simon merged commit 90a65ed into main Jun 1, 2026
2 checks passed
@404Simon
404Simon deleted the parallelized-batch-processing branch June 3, 2026 08:00
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.

2 participants