From a412cd07b105807a3fcd5fdc8b9caae0e227cf06 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 9 Jun 2023 15:36:15 -0700 Subject: [PATCH] cloudlog process not running (#28472) * cloudlog process not running * error --- selfdrive/controls/controlsd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 3903340c8d..82c66a20f9 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -170,6 +170,7 @@ class Controls: self.events_prev = [] self.current_alert_types = [ET.PERMANENT] self.logged_comm_issue = None + self.not_running_prev = None self.last_actuators = car.CarControl.Actuators.new_message() self.steer_limited = False self.desired_curvature = 0.0 @@ -330,6 +331,9 @@ class Controls: not_running = {p.name for p in self.sm['managerState'].processes if not p.running and p.shouldBeRunning} if self.sm.rcv_frame['managerState'] and (not_running - IGNORE_PROCESSES): self.events.add(EventName.processNotRunning) + if not_running != self.not_running_prev: + cloudlog.event("process_not_running", not_running=not_running, error=True) + self.not_running_prev = not_running else: if not SIMULATION and not self.rk.lagging: if not self.sm.all_alive(self.camera_packets):