mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +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:
|
except Exception:
|
||||||
# make sure we do not interrupt the exit process
|
# make sure we do not interrupt the exit process
|
||||||
pass
|
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
|
@classmethod
|
||||||
def __register_at_exit(cls, exit_callback, only_remove_signal_and_exception_hooks=False):
|
def __register_at_exit(cls, exit_callback, only_remove_signal_and_exception_hooks=False):
|
||||||
|
Loading…
Reference in New Issue
Block a user