feat(indexing): add bulk video indexing command and coordinator (#68) - #157
Open
aimerscrypto wants to merge 1 commit into
Open
feat(indexing): add bulk video indexing command and coordinator (#68)#157aimerscrypto wants to merge 1 commit into
aimerscrypto wants to merge 1 commit into
Conversation
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.