Move magic number variable to the literls.py module

This commit is contained in:
Roberto Rosario
2015-01-14 18:47:31 -04:00
parent 6e333b7eeb
commit fafd84b8d2
2 changed files with 2 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
DEFAULT_OCR_FILE_FORMAT = u'tiff'
DEFAULT_OCR_FILE_EXTENSION = u'tif'
LOCK_EXPIRE = 60 * 10 # Adjust to worst case scenario
UNPAPER_FILE_FORMAT = u'ppm'

View File

@@ -12,10 +12,10 @@ from lock_manager import Lock, LockError
from mayan.celery import app
from .api import do_document_ocr
from .literals import LOCK_EXPIRE
from .models import DocumentQueue, QueueDocument
logger = logging.getLogger(__name__)
LOCK_EXPIRE = 60 * 10 # Adjust to worst case scenario
@app.task(ignore_result=True)