Update the checkouts app to use Celery beat

This commit is contained in:
Roberto Rosario
2014-10-03 01:56:03 -04:00
parent 80a65c69b7
commit af6ac7a170
2 changed files with 14 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ from __future__ import absolute_import
import logging
from lock_manager import Lock, LockError
from mayan.celery import app
from .models import DocumentCheckout
@@ -10,6 +11,7 @@ LOCK_EXPIRE = 50
logger = logging.getLogger(__name__)
@app.task
def task_check_expired_check_outs():
logger.debug('executing...')
lock_id = u'task_expired_check_outs'