feat(media): wire pending and failed ingest states - #115
Conversation
87a0d39 to
3e38960
Compare
|
Review follow-up Thanks for the review. The latest commit addresses the open feedback: Import failures: Probe failures were already marked failed. Publish and final catalog write failures are now marked failed as well, so unsuccessful imports do not stay stuck in pending. Existing managed-content cleanup on catalog failure is unchanged. py -m uv run --no-sync pytest -q tests/test_media_services.py tests/test_control_plane.py tests/test_frontend.py -k "preflight or publish_failure or registered" Happy to adjust if anything else should change. |
Summary
pending, thenreadyafter a successful probe, orfailedif probe/import fails.vidxp media list(and JSON/API/MCP) can distinguish those states. Indexing and managed-file access stayready-only.MediaStateonly hadready.pending/faileditems may omit duration/streams. Existingreadyrecords are unchanged.UploadStateand are not added to the media catalog.Validation
py -m uv run --no-sync pytest -q tests/test_media_services.py tests/test_media_catalog.py tests/test_cli.py -k "media_list or import_probes or invalid_probe or failed_checksum or get_returns or require_record or replaces_pending or ready_media_requires or quarantined_import or catalog_failure or existing_checksum"py -m uv run --no-sync pytest -q tests/test_media_services.py tests/test_media_catalog.py tests/test_cli.py tests/test_api.py tests/test_control_plane.py tests/test_public_path_contracts.py