[CalendarServer-changes] [13938] twext/trunk/twext/enterprise/jobqueue.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Sep 3 11:35:32 PDT 2014
Revision: 13938
http://trac.calendarserver.org//changeset/13938
Author: cdaboo at apple.com
Date: 2014-09-03 11:35:32 -0700 (Wed, 03 Sep 2014)
Log Message:
-----------
Lowest priority value should be zero since that is the default column value in the schema.
Modified Paths:
--------------
twext/trunk/twext/enterprise/jobqueue.py
Modified: twext/trunk/twext/enterprise/jobqueue.py
===================================================================
--- twext/trunk/twext/enterprise/jobqueue.py 2014-09-03 17:09:40 UTC (rev 13937)
+++ twext/trunk/twext/enterprise/jobqueue.py 2014-09-03 18:35:32 UTC (rev 13938)
@@ -774,9 +774,9 @@
# Priority for work - used to order work items in the job queue
-WORK_PRIORITY_LOW = 1
-WORK_PRIORITY_MEDIUM = 2
-WORK_PRIORITY_HIGH = 3
+WORK_PRIORITY_LOW = 0
+WORK_PRIORITY_MEDIUM = 1
+WORK_PRIORITY_HIGH = 2
# Weight for work - used to schedule workers based on capacity
WORK_WEIGHT_0 = 0
@@ -1961,6 +1961,8 @@
"workCheck: jobqueue priority limit change: {limit}",
limit=minPriority,
)
+ if self._lastMinPriority == WORK_PRIORITY_HIGH + 1:
+ log.error("workCheck: jobqueue is no longer overloaded")
self._lastMinPriority = minPriority
# Determine what the timestamp cutoff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140903/ac055070/attachment.html>
More information about the calendarserver-changes
mailing list