Remove temporary file lock at the end of the execution or in Task.close()

This commit is contained in:
allegroai 2020-03-05 12:25:17 +02:00
parent b0c602c832
commit 181a0be0af

View File

@ -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):