[CalendarServer-changes] [14146] CalendarServer/trunk/calendarserver/tools/test/test_importer.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Nov 7 11:04:06 PST 2014


Revision: 14146
          http://trac.calendarserver.org//changeset/14146
Author:   sagen at apple.com
Date:     2014-11-07 11:04:06 -0800 (Fri, 07 Nov 2014)
Log Message:
-----------
Reschedule jobs quickly after lock conflict

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/test/test_importer.py

Modified: CalendarServer/trunk/calendarserver/tools/test/test_importer.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/test/test_importer.py	2014-11-07 18:50:59 UTC (rev 14145)
+++ CalendarServer/trunk/calendarserver/tools/test/test_importer.py	2014-11-07 19:04:06 UTC (rev 14146)
@@ -152,6 +152,7 @@
 
     def configure(self):
         super(ImportTests, self).configure()
+
         # Enable the queue and make it fast
         self.patch(self.config.Scheduling.Options.WorkQueues, "Enabled", True)
         self.patch(self.config.Scheduling.Options.WorkQueues, "RequestDelaySeconds", 0.1)
@@ -160,7 +161,11 @@
         self.patch(self.config.Scheduling.Options.WorkQueues, "AttendeeRefreshBatchDelaySeconds", 0.1)
         self.patch(self.config.Scheduling.Options.WorkQueues, "AttendeeRefreshBatchIntervalSeconds", 0.1)
 
+        # Reschedule quickly
+        self.patch(JobItem, "failureRescheduleInterval", 1)
+        self.patch(JobItem, "lockRescheduleInterval", 1)
 
+
     @inlineCallbacks
     def test_ImportComponentMissingSource(self):
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20141107/0a057202/attachment.html>


More information about the calendarserver-changes mailing list