mirror of
https://github.com/clearml/clearml
synced 2025-04-04 04:51:08 +00:00
Fix resource monitoring should only be run in the main process when using threaded logging mode
This commit is contained in:
parent
0191493864
commit
afad2772b9
@ -56,6 +56,9 @@ class ResourceMonitor(BackgroundMonitor):
|
||||
pass
|
||||
|
||||
def daemon(self):
|
||||
if self._is_thread_mode_and_not_main_process():
|
||||
return
|
||||
|
||||
seconds_since_started = 0
|
||||
reported = 0
|
||||
last_iteration = 0
|
||||
|
Loading…
Reference in New Issue
Block a user