Print error on resource monitor failure

This commit is contained in:
allegroai 2023-05-11 16:18:11 +03:00
parent 307ec9213e
commit b6ca0fa6a5

View File

@ -139,6 +139,7 @@ class ResourceMonitor(object):
def _daemon(self):
seconds_since_started = 0
reported = 0
try:
while True:
last_report = time()
current_report_frequency = (
@ -175,6 +176,8 @@ class ResourceMonitor(object):
# count reported iterations
reported += 1
except Exception as ex:
log.exception("Error reporting monitoring info: %s", str(ex))
def _update_readouts(self):
readouts = self._machine_stats()