We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d4252b commit 5c184beCopy full SHA for 5c184be
manager.go
@@ -587,7 +587,8 @@ func (m *Manager) StartBackgroundChecks(ctx context.Context) {
587
needsRestartCheckInterval = minimalNeedsRestartCheckInterval
588
}
589
if needsRestart {
590
- m.logger.Infof("%s restart was requested from app; forcibly restarting now", SubsystemName)
+ // Do not mark m.agentNeedsRestart and instead Exit immediately; we do not want
591
+ // to wait for viam-server to allow a restart as it may be in a bad state.
592
m.Exit(fmt.Sprintf("A restart of %s was requested from app", SubsystemName))
593
594
// As with the device agent config check interval, randomly fuzz the interval by
0 commit comments