zhangyong 8 ماه پیش
والد
کامیت
88a8f2c0f9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      common/redis.py

+ 1 - 1
common/redis.py

@@ -39,7 +39,7 @@ def get_data(name, data):
     helper = SyncRedisHelper()
     client = helper.get_client()
     if not client.exists(task):
-        acquire_lock = client.set(lock, 1, ex=120, nx=True)
+        acquire_lock = client.set(lock, 1, ex=60, nx=True)
         if not acquire_lock:
             return None