depot/third_party/nixpkgs/pkgs/by-name/we/weblate/cache.lock.patch
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

22 lines
733 B
Diff

diff --git a/weblate/utils/lock.py b/weblate/utils/lock.py
index 53c1486bc9..a0a5fc5a74 100644
--- a/weblate/utils/lock.py
+++ b/weblate/utils/lock.py
@@ -43,8 +43,6 @@ class WeblateLock:
self._name = self._format_template(cache_template)
self._lock = cache.lock(
key=self._name,
- expire=3600,
- auto_renewal=True,
)
self._enter_implementation = self._enter_redis
else:
@@ -62,7 +60,7 @@ class WeblateLock:
def _enter_redis(self):
try:
- lock_result = self._lock.acquire(timeout=self._timeout)
+ lock_result = self._lock.acquire()
except AlreadyAcquired:
return