[CalendarServer-changes] [15686] twext/trunk/twext/enterprise/jobs/jobitem.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jun 21 12:53:26 PDT 2016
Revision: 15686
http://trac.calendarserver.org//changeset/15686
Author: cdaboo at apple.com
Date: 2016-06-21 12:53:25 -0700 (Tue, 21 Jun 2016)
Log Message:
-----------
Oracle PL/SQL function change.
Modified Paths:
--------------
twext/trunk/twext/enterprise/jobs/jobitem.py
Modified: twext/trunk/twext/enterprise/jobs/jobitem.py
===================================================================
--- twext/trunk/twext/enterprise/jobs/jobitem.py 2016-06-20 20:10:32 UTC (rev 15685)
+++ twext/trunk/twext/enterprise/jobs/jobitem.py 2016-06-21 19:53:25 UTC (rev 15686)
@@ -386,16 +386,8 @@
# SELECT ... FOR UPDATE SKIP LOCKED query that ensures only the row
# being fetched is locked and existing locked rows are skipped.
- # Three separate stored procedures for the three priority cases
- if minPriority == JOB_PRIORITY_LOW:
- function = "next_job_all"
- elif minPriority == JOB_PRIORITY_MEDIUM:
- function = "next_job_medium_high"
- elif minPriority == JOB_PRIORITY_HIGH:
- function = "next_job_high"
-
job = None
- jobID = yield Call(function, now, returnType=int).on(txn)
+ jobID = yield Call("next_job", now, minPriority, returnType=int).on(txn)
if jobID:
job = yield cls.load(txn, jobID)
else:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160621/ed11765b/attachment.html>
More information about the calendarserver-changes
mailing list