concore_cli: add watch command for live simulation monitoring#450
Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom Feb 22, 2026
Merged
concore_cli: add watch command for live simulation monitoring#450pradeeban merged 1 commit intoControlCore-Project:devfrom
pradeeban merged 1 commit intoControlCore-Project:devfrom
Conversation
Author
|
Hey @pradeeban kept it exactly as you wanted. new file only (watch.py), two lines added to the existing cli files, zero runtime changes. one thing i noticed while building this, that edge dirs don't carry any metadata about which node wrote them last, so "active edges" is approximated by file mtime. There's actually a cleaner way to get this without any runtime changes: each node dir already has out1, out2 junctions pointing to the edge dirs (set up by build). Following those would let watch figure out which node owns which edge purely from the build structure, no new files needed. flagging for a future iteration, happy to pick it up if you think it's worth doing. |
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 #449
added concore watch <study_dir> to the CLI, polls the edge/port directories every N seconds and shows a live table of simtime, current values, and write age per port. without this you had to cat files manually to see what a running simulation was doing.
new file only (watch.py). two-line additions to cli.py and init.py. no runtime code touched.