fix exam 考试
This commit is contained in:
parent
967f116c72
commit
6805c0bc41
|
@ -56,7 +56,7 @@ def dectry(p):
|
|||
|
||||
def acquire_lock(lock_name, timeout=60):
|
||||
identifier = str(uuid.uuid4())
|
||||
lock = cache.set(lock_name, identifier, timeout=timeout)
|
||||
lock = cache.add(lock_name, identifier, timeout=timeout)
|
||||
print(lock, identifier)
|
||||
return identifier if lock else None
|
||||
|
||||
|
|
Loading…
Reference in New Issue