Made the concurrent ocr code more granular, per node, every node can handle different amounts of concurrent ocr tasks

This commit is contained in:
Roberto Rosario
2011-03-22 04:17:48 -04:00
parent d0942a203b
commit 3cb0f37b5b
6 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -2,5 +2,5 @@ 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', 10) #In seconds
NODE_CONCURRENT_EXECUTION = getattr(settings, 'OCR_NODE_CONCURRENT_EXECUTION', 1)