[CalendarServer-changes] [13477] CalendarServer/trunk/calendarserver/push/notifier.py

source_changes at macosforge.org source_changes at macosforge.org
Thu May 15 09:09:15 PDT 2014


Revision: 13477
          http://trac.calendarserver.org//changeset/13477
Author:   cdaboo at apple.com
Date:     2014-05-15 09:09:15 -0700 (Thu, 15 May 2014)
Log Message:
-----------
Push jobs have weight 1 for now.

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/push/notifier.py

Modified: CalendarServer/trunk/calendarserver/push/notifier.py
===================================================================
--- CalendarServer/trunk/calendarserver/push/notifier.py	2014-05-15 02:42:19 UTC (rev 13476)
+++ CalendarServer/trunk/calendarserver/push/notifier.py	2014-05-15 16:09:15 UTC (rev 13477)
@@ -20,7 +20,8 @@
 
 from twext.enterprise.dal.record import fromTable
 from twext.enterprise.dal.syntax import Delete, Select, Parameter
-from twext.enterprise.jobqueue import WorkItem, WORK_PRIORITY_HIGH
+from twext.enterprise.jobqueue import WorkItem, WORK_PRIORITY_HIGH, \
+    WORK_WEIGHT_1
 from twext.python.log import Logger
 
 from twisted.internet.defer import inlineCallbacks
@@ -42,6 +43,7 @@
 
     group = property(lambda self: self.pushID)
     default_priority = WORK_PRIORITY_HIGH
+    default_weight = WORK_WEIGHT_1
 
     @inlineCallbacks
     def doWork(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140515/3c1f954d/attachment.html>


More information about the calendarserver-changes mailing list