[CalendarServer-changes] [12852] twext/trunk/twext/enterprise/jobqueue.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 7 15:09:08 PST 2014
Revision: 12852
http://trac.calendarserver.org//changeset/12852
Author: wsanchez at apple.com
Date: 2014-03-07 15:09:08 -0800 (Fri, 07 Mar 2014)
Log Message:
-----------
getWorkForJob -> workItem
Modified Paths:
--------------
twext/trunk/twext/enterprise/jobqueue.py
Modified: twext/trunk/twext/enterprise/jobqueue.py
===================================================================
--- twext/trunk/twext/enterprise/jobqueue.py 2014-03-07 23:08:46 UTC (rev 12851)
+++ twext/trunk/twext/enterprise/jobqueue.py 2014-03-07 23:09:08 UTC (rev 12852)
@@ -276,7 +276,7 @@
"""
@inlineCallbacks
- def getWorkForJob(self):
+ def workItem(self):
workItemClass = WorkItem.forTableName(self.workType)
workItems = yield workItemClass.loadForJob(
self.transaction, self.jobID
@@ -290,7 +290,7 @@
Run this job item by finding the appropriate work item class and
running that.
"""
- workItem = yield self.getWorkForJob()
+ workItem = yield self.workItem()
if workItem is not None:
if workItem.group is not None:
yield NamedLock.acquire(self.transaction, workItem.group)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140307/b3b934cc/attachment-0001.html>
More information about the calendarserver-changes
mailing list