Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BalaBalaYi committed Jan 2, 2025
1 parent 2cb2c45 commit 6014f5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dlrover/python/elastic_agent/diagnosis/diagnosis_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ def send_heartbeat(self):
logger.warning(f"fail to report a heartbeat: {e}")

def _periodically_report(self):
logger.info("Start diagnosis agent reporter.")
logger.info("Start diagnosis agent periodically reporter.")
while True:
if self._stopped:
logger.info("Stop periodically reporter.")
break
self.send_heartbeat()
time.sleep(15)

0 comments on commit 6014f5a

Please sign in to comment.