mirror of
https://github.com/clearml/clearml
synced 2025-04-21 06:44:16 +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
|
pass
|
||||||
|
|
||||||
def daemon(self):
|
def daemon(self):
|
||||||
|
if self._is_thread_mode_and_not_main_process():
|
||||||
|
return
|
||||||
|
|
||||||
seconds_since_started = 0
|
seconds_since_started = 0
|
||||||
reported = 0
|
reported = 0
|
||||||
last_iteration = 0
|
last_iteration = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user