mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix reporter should skip report if report thread service is closed
This commit is contained in:
parent
03f9bf0c2d
commit
2676e14d4d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user