Fix reporter should skip report if report thread service is closed

This commit is contained in:
allegroai 2021-01-24 09:20:09 +02:00
parent 03f9bf0c2d
commit 2676e14d4d

View File

@ -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