* Added a new option OCR_REPLICATION_DELAY to allow the storage some time for replication before attempting to do OCR to a document

This commit is contained in:
Roberto Rosario
2011-03-21 12:24:42 -04:00
parent ed772c6ebb
commit bbcc0ead65
5 changed files with 8 additions and 2 deletions

View File

@@ -3,3 +3,4 @@ from django.conf import settings
TESSERACT_PATH = getattr(settings, 'OCR_TESSERACT_PATH', u'/usr/bin/tesseract')
TESSERACT_LANGUAGE = getattr(settings, 'OCR_TESSERACT_LANGUAGE', None)
MAX_CONCURRENT_EXECUTION = getattr(settings, 'OCR_MAX_CONCURRENT_EXECUTION', 2)
REPLICATION_DELAY = getattr(settings, 'OCR_REPLICATION_DELAY', 360) #In seconds, 360 = 6 minutes