zhangyong 7 月之前
父节点
当前提交
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