mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Do not try to wait for Lock
This commit is contained in:
parent
337e60a376
commit
de9c88bc2d
@ -230,7 +230,7 @@ class RLock(Lock):
|
||||
|
||||
def acquire(self, timeout=None, check_interval=None, fail_when_locked=None):
|
||||
if self._lock:
|
||||
if not self._lock.acquire(timeout=timeout):
|
||||
if not self._lock.acquire(block=timeout != 0, timeout=timeout):
|
||||
# We got a timeout... reraising
|
||||
raise exceptions.LockException()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user