Feat change capture updates mechanism #1216
Open
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.
PR: Add CLI --live-status flag to show source update mechanisms
Summary
Adds
--live-statusflag tococoindex showcommand to display interval-based updates and change capture mechanism status for each data source.Changes
Files Modified
src/execution/live_updater.rsprint_cli_status()methodindex_update_info()method for Python bindingssrc/py/mod.rsprint_cli_status_async()- Exposes Rust print functionality to Pythonnext_status_updates_cli_async()- Exposes Rust status updates to Pythonpython/cocoindex/flow.pyprint_cli_status()- Sync version for CLI status displayprint_cli_status_async()- Async versionnext_status_updates_cli()- Sync version for status updatesnext_status_updates_cli_async()- Async versionpython/cocoindex/cli.py--live-statusoption to show commandNew CLI Usage
Output Format
Where:
interval=trueindicates source has configured refresh intervalchange_capture=trueindicates source uses change capture mechanismTesting
Backward Compatibility
--live-statusflagImplementation Notes
FlowLiveUpdaterStatusfields (source_interval_enabled,source_change_capture_enabled)