zhangyong 9 달 전
부모
커밋
026947a23b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      common/redis.py

+ 1 - 1
common/redis.py

@@ -50,7 +50,7 @@ def get_redis_video_data(video_id):
     lock = f"video_lock:{video_id}"
     helper = SyncRedisHelper()
     client = helper.get_client()
-    acquire_lock = client.set(lock, 1, ex=600, nx=True)
+    acquire_lock = client.set(lock, 1, ex=1200, nx=True)
     if not acquire_lock:
         return True
     return False