Disabled reset_orphans() which causes problems with big clusters increased latency

This commit is contained in:
Roberto Rosario
2011-05-07 01:47:00 -04:00
parent 9e61213241
commit 0d410b510c

View File

@@ -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))