From 7ab6be8440f0343380eae9cefb74fadd1bf9c420 Mon Sep 17 00:00:00 2001 From: Senthil Kumar Guruswamy <75792349+sg893052@users.noreply.github.com> Date: Fri, 1 Sep 2023 00:37:42 +0530 Subject: [PATCH] Handle service start-limit-hit failure event case in sysmonitor (#16174) --- src/system-health/health_checker/sysmonitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system-health/health_checker/sysmonitor.py b/src/system-health/health_checker/sysmonitor.py index 7a42768c3f..10af5d4a7d 100755 --- a/src/system-health/health_checker/sysmonitor.py +++ b/src/system-health/health_checker/sysmonitor.py @@ -73,7 +73,7 @@ class MonitorSystemBusTask(ProcessTaskBase): self.task_queue = myQ def on_job_removed(self, id, job, unit, result): - if result == "done": + if result == "done" or result == "failed": timestamp = "{}".format(datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S")) msg = {"unit": unit, "evt_src":"sysbus", "time":timestamp} self.task_notify(msg)