Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose progress information in a machine-readable format #114

Open
subdavis opened this issue Oct 30, 2020 · 1 comment
Open

Expose progress information in a machine-readable format #114

subdavis opened this issue Oct 30, 2020 · 1 comment

Comments

@subdavis
Copy link
Contributor

subdavis commented Oct 30, 2020

Something that VIAME Web and Heavy can use to show users a more friendly indication of how their training / pipeline is going.

Option 1: signals

Long-running applications like dd use signals to communicate progress. USR1 is a good option, designed for exactly this purpose. The process manager could regularly send this signal to kwiver to get progress.

Option 2: stdout

Some regularly formatted line of stdout with a prefix we can recognize.

<PREFIX> key1="value1" key2="value2"

This is a popular option.

<PREFIX> { /* json object */ }

This would also be fine.

@linus-sherrill
Copy link
Collaborator

Another mechanism that is available for communicating with a pipeline is the dynamic_configuration algorithm. The derived class needs to make the connection between the two parties and can then pass key/value pairs (config block). The original application for this was to allow an external GUI to change the behaviour of a pipeline element by passing new config values to that element, but it can also be used to return an updated config block to the caller. There is at least one real usage in the squad-x code base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants