Handle service start-limit-hit failure event case in sysmonitor (#16174)

This commit is contained in:
Senthil Kumar Guruswamy 2023-09-01 00:37:42 +05:30 committed by mssonicbld
parent 1909f019ab
commit 7ab6be8440

View File

@ -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)