fix exam 考试
This commit is contained in:
parent
af9315629d
commit
37621e170b
|
@ -731,6 +731,7 @@ class ExamRecordViewSet(ListModelMixin, DestroyModelMixin, RetrieveModelMixin, G
|
|||
def acquire_lock(lock_name, timeout=60):
|
||||
identifier = str(uuid.uuid4())
|
||||
lock = cache.set(lock_name, identifier, timeout=timeout)
|
||||
print(lock, identifier)
|
||||
return identifier if lock else None
|
||||
|
||||
def release_lock(lock_name, identifier):
|
||||
|
|
Loading…
Reference in New Issue