From 0d410b510c937993315cf9b6d32c5a61d39d0f06 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 7 May 2011 01:47:00 -0400 Subject: [PATCH] Disabled reset_orphans() which causes problems with big clusters increased latency --- apps/ocr/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/ocr/tasks.py b/apps/ocr/tasks.py index d47fcff96b..553c0737da 100644 --- a/apps/ocr/tasks.py +++ b/apps/ocr/tasks.py @@ -93,7 +93,9 @@ def task_process_document_queues(): if not cache_backend: random_delay() - reset_orphans() + # reset_orphans() + # Causes problems with big clusters increased latency + # Disabled until better solution q_pending = Q(state=QUEUEDOCUMENT_STATE_PENDING) q_delayed = Q(delay=True) q_delay_interval = Q(datetime_submitted__lt=datetime.now() - timedelta(seconds=REPLICATION_DELAY))