From 2676e14d4d1869af97a682c865ede0025d71a8c9 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sun, 24 Jan 2021 09:20:09 +0200 Subject: [PATCH] Fix reporter should skip report if report thread service is closed --- clearml/backend_interface/metrics/reporter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clearml/backend_interface/metrics/reporter.py b/clearml/backend_interface/metrics/reporter.py index 9374b2b7..b9f844ce 100644 --- a/clearml/backend_interface/metrics/reporter.py +++ b/clearml/backend_interface/metrics/reporter.py @@ -177,6 +177,8 @@ class Reporter(InterfaceBase, AbstractContextManager, SetupUploadMixin, AsyncMan return self._max_iteration def _report(self, ev): + if not self._report_service: + return ev_iteration = ev.get_iteration() if ev_iteration is not None: # we have to manually add get_iteration_offset() because event hasn't reached the Metric manager