-
Notifications
You must be signed in to change notification settings - Fork 110
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-3329, RSDK-4070 - Do not restart modules that crash before ready and respect resource configuration timeout #2645
RSDK-3329, RSDK-4070 - Do not restart modules that crash before ready and respect resource configuration timeout #2645
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 for the most part, but has a race condition to fix.
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
// be set to override defaultResourceConfigurationTimeout as the duration | ||
// that resources and modules are allowed to (re)configure and startup | ||
// respectively. | ||
ResourceConfigurationTimeoutEnvVar = "VIAM_RESOURCE_CONFIGURATION_TIMEOUT" |
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.
@stuqdog consolidated a bit of this env var logic btw. LMK if anything seems off.
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 generally good to me, but would like to see another test or two
nit: would name PR RSDK-3329, RSDK-4070 - XXX
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.
Several minor nits from me, but @cheukt caught a big issue that needs to be addressed.
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!
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!
Code Coverage
|
… and respect resource configuration timeout (viamrobotics#2645)
RSDK-3329
RSDK-4070
Only restarts modules in the OUE handler when the
handles
field has been set on the module (the module responded to a ready request and returned its handler map). Changes hard-coded 30 second listen/ready timeouts to be 60 second defaults that can overridden withVIAM_RESOURCE_CONFIGURATION_TIMEOUT
variable). Adds a test that immediate crash of a module does not result in an attempted restart.