mirror of
https://github.com/clearml/clearml
synced 2025-04-08 22:54:44 +00:00
Remove temporary file lock at the end of the execution or in Task.close()
This commit is contained in:
parent
b0c602c832
commit
181a0be0af
@ -1455,6 +1455,14 @@ class Task(_Task):
|
||||
except Exception:
|
||||
# make sure we do not interrupt the exit process
|
||||
pass
|
||||
# delete locking object (lock file)
|
||||
# noinspection PyBroadException
|
||||
if self._edit_lock:
|
||||
try:
|
||||
del self._edit_lock
|
||||
except Exception:
|
||||
pass
|
||||
self._edit_lock = None
|
||||
|
||||
@classmethod
|
||||
def __register_at_exit(cls, exit_callback, only_remove_signal_and_exception_hooks=False):
|
||||
|
Loading…
Reference in New Issue
Block a user