diff --git a/apps/common/utils/lock.py b/apps/common/utils/lock.py index 41b6376cf..f52c28b68 100644 --- a/apps/common/utils/lock.py +++ b/apps/common/utils/lock.py @@ -49,7 +49,7 @@ class DistributedLock(RedisLock): else: auto_renewal = False - super().__init__(redis_client=redis, name=name, expire=expire, auto_renewal=auto_renewal) + super().__init__(redis_client=redis, name='{'+name+'}', expire=expire, auto_renewal=auto_renewal) self._release_on_transaction_commit = release_on_transaction_commit self._release_raise_exc = release_raise_exc self._reentrant = reentrant diff --git a/requirements/requirements.txt b/requirements/requirements.txt index b3873af1d..ac931660e 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -95,7 +95,7 @@ python-cas==1.5.0 ipython huaweicloud-sdk-python==1.0.21 django-redis==4.11.0 -python-redis-lock==3.5.0 +python-redis-lock==3.7.0 jumpserver-django-oidc-rp==0.3.7.8 django-mysql==3.9.0 gmssl==3.2.1