From bb14dd113976d9941f9a118209eba08c356a4683 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 22 Feb 2006 12:43:26 +0000 Subject: [PATCH] lower the column retry in timeShift git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5776 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/CMFActivity/Activity/SQLDict.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/product/CMFActivity/Activity/SQLDict.py b/product/CMFActivity/Activity/SQLDict.py index 9e5bf8d778..7e10ab858b 100755 --- a/product/CMFActivity/Activity/SQLDict.py +++ b/product/CMFActivity/Activity/SQLDict.py @@ -211,7 +211,7 @@ class SQLDict(RAMDict): if len(result) == 0: # If the result is still empty, shift the dates so that SQLDict can dispatch pending active # objects quickly. - self.timeShift(activity_tool, VALIDATION_ERROR_DELAY, processing_node) + self.timeShift(activity_tool, VALIDATION_ERROR_DELAY, processing_node,retry=1) elif len(result) > 0: #LOG('SQLDict dequeueMessage', 100, 'result = %r' % (list(result))) line = result[0] @@ -551,11 +551,11 @@ class SQLDict(RAMDict): return VALID # Required for tests (time shift) - def timeShift(self, activity_tool, delay, processing_node=None): + def timeShift(self, activity_tool, delay, processing_node=None,retry=None): """ To simulate timeShift, we simply substract delay from all dates in SQLDict message table """ - activity_tool.SQLDict_timeShift(delay = delay, processing_node = processing_node) + activity_tool.SQLDict_timeShift(delay = delay, processing_node = processing_node,retry=retry) registerActivity(SQLDict) -- 2.30.9