mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Fix at_exit_called from another process should be ignored
This commit is contained in:
parent
fcc06b864a
commit
c75de848f5
@ -2305,7 +2305,7 @@ class Task(_Task):
|
||||
|
||||
if not self._logger:
|
||||
# do not recreate logger after task was closed/quit
|
||||
if self._at_exit_called:
|
||||
if self._at_exit_called and self._at_exit_called in (True, get_current_thread_id(), ):
|
||||
raise ValueError("Cannot use Task Logger after task was closed")
|
||||
# Get a logger object
|
||||
self._logger = Logger(
|
||||
|
Loading…
Reference in New Issue
Block a user