Files
mayan-edms/mayan/apps/lock_manager/management/commands/purgelocks.py
2017-06-20 01:57:16 -04:00

13 lines
287 B
Python

from __future__ import unicode_literals
from django.core import management
from ...runtime import locking_backend
class Command(management.BaseCommand):
help = 'Erase all locks (acquired and stale).'
def handle(self, *args, **options):
locking_backend.purge_locks()