watchdog: restart while onroad (#21636)

old-commit-hash: 09291b99bc
This commit is contained in:
Adeeb Shihadeh
2021-07-17 14:52:05 -07:00
committed by GitHub
parent 17faf6e48f
commit 65ec97ad2d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -96,8 +96,8 @@ class ManagerProcess(ABC):
if dt > self.watchdog_max_dt:
# Only restart while offroad for now
if self.watchdog_seen and ENABLE_WATCHDOG and (not started):
cloudlog.error(f"Watchdog timeout for {self.name} (exitcode {self.proc.exitcode}) restarting")
if self.watchdog_seen and ENABLE_WATCHDOG:
cloudlog.error(f"Watchdog timeout for {self.name} (exitcode {self.proc.exitcode}) restarting ({started=})")
self.restart()
else:
self.watchdog_seen = True