zhangyong 7 months ago
parent
commit
88a8f2c0f9
1 changed files with 1 additions and 1 deletions
  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