-
Notifications
You must be signed in to change notification settings - Fork 4
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
RSDK-9223 Conditionally restart viam-server based on restart_status #42
RSDK-9223 Conditionally restart viam-server based on restart_status #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me for the most part. Couple small things, but the main one is checking the http response status instead of waiting for json decode to fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (as soon as RDK updates and you can remove the go replace, of course)
|
RSDK-9223
Modifies
Update
to check therestart_status
HTTP endpoint of theviam-server
subsystem when an update is available. If that endpoint indicates that an external restart is allowed, immediately restart theviam-server
instance for an update.Tested locally with an old
viam-server
(no exposedrestart_status
endpoint) and a newviam-server
version (exposedrestart_status
endpoint.) Restarts and logs happen as (I) expected.Will leave in "Draft" until the associated
rdk
PR is merged.cc @viamrobotics/netcode