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 8f415c004b
commit dee901bd80

View File

@ -74,7 +74,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)