feat(indexing): add bulk video indexing command and coordinator (#68) - #157
Merged
tulayha merged 1 commit intoSep 14, 2026
Conversation
Collaborator
|
I鈥檝e moved this PR to We鈥檒l keep your reusable runner, indexing options, progress callbacks and detached submission, and use #158鈥檚 preview plan and skip reasons. I鈥檒l handle the integration, including checking the saved content and indexing configuration before skipping a video, and keeping the job ID when indexing fails so it can be retried. Both contributions will be retained. You鈥檙e welcome to review the combined result once it鈥檚 ready. |
tulayha
merged commit Sep 14, 2026
ad301b6
into
grayhatdevelopers:codex/bulk-index-integration
2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #68
Summary
Adds bulk indexing capabilities to VidXP for both selected media assets and all eligible catalog items.
Changes
Bulk Indexing Coordinator (
src/vidxp/bulk_indexing.py):run_bulk_indexcoordinator withBulkIndexItemResultandBulkIndexSummarydata models.application.list_mediato resolve all eligible items when--allis requested.active_snapshot.generationsto skip previously indexed media unless re-indexing is explicitly forced.ApplicationErrorisolation so single item failures do not halt remaining jobs.on_item_start,on_item_progress,on_item_complete) and--detachqueueing.CLI Command (
src/vidxp/cli_commands/index.py):vidxp index bulkcommand supporting positional media IDs,--all,--reindex,--detach,--json, and standard index options (--modality,--frame-stride, etc.).1if any items fail.Tests (
tests/test_bulk_indexing.py):Verification
uv run --with ruff ruff check .passed cleanly.uv run --no-sync python -m pytest -q tests/test_bulk_indexing.pypassed (26/26 tests).--help, and non-existent media error handling locally.