Handle service start-limit-hit failure event case in sysmonitor (#16174)
This commit is contained in:
parent
fdd5deb453
commit
34e5d266e5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user