Skip to content

Commit

Permalink
Handle service start-limit-hit failure event case in sysmonitor (soni…
Browse files Browse the repository at this point in the history
  • Loading branch information
sg893052 authored and mssonicbld committed Sep 3, 2023
1 parent 1909f01 commit 7ab6be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system-health/health_checker/sysmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self,myQ):
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)
Expand Down

0 comments on commit 7ab6be8

Please sign in to comment.