mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-07 09:15:56 +08:00
watchdog: restart while onroad (#21636)
old-commit-hash: 09291b99bcd1304fb87478218b82297aa51655c9
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user