zhangyong hai 8 meses
pai
achega
88a8f2c0f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/redis.py

+ 1 - 1
common/redis.py

@@ -39,7 +39,7 @@ def get_data(name, data):
     helper = SyncRedisHelper()
     helper = SyncRedisHelper()
     client = helper.get_client()
     client = helper.get_client()
     if not client.exists(task):
     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:
         if not acquire_lock:
             return None
             return None