selfdrived: log all not running (#33869)

pull/33870/head
Adeeb Shihadeh 6 months ago committed by GitHub
parent 835a27e993
commit 85c1b2b620
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      selfdrive/selfdrived/selfdrived.py

@ -255,11 +255,12 @@ class SelfdriveD:
num_events = len(self.events)
not_running = {p.name for p in self.sm['managerState'].processes if not p.running and p.shouldBeRunning}
if self.sm.recv_frame['managerState'] and (not_running - IGNORE_PROCESSES):
self.events.add(EventName.processNotRunning)
if self.sm.recv_frame['managerState'] and len(not_running):
if not_running != self.not_running_prev:
cloudlog.event("process_not_running", not_running=not_running, error=True)
self.not_running_prev = not_running
if self.sm.recv_frame['managerState'] and (not_running - IGNORE_PROCESSES):
self.events.add(EventName.processNotRunning)
else:
if not SIMULATION and not self.rk.lagging:
if not self.sm.all_alive(self.camera_packets):

Loading…
Cancel
Save