Add purgelock management command. Closes GitLab issue #221.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-06-20 01:57:16 -04:00
parent ea636aac7e
commit 5d13f46548
7 changed files with 49 additions and 3 deletions
+15
View File
@@ -0,0 +1,15 @@
from __future__ import unicode_literals
class LockingBackend(object):
"""
Base class for the lock backends. Defines the base methods that each
subclass must define.
"""
@classmethod
def acquire_lock(cls, name, timeout=None):
raise NotImplementedError
@classmethod
def purge_locks(cls):
raise NotImplementedError