[CalendarServer-changes] [9623] CalendarServer/branches/users/glyph/q

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 11 01:55:00 PDT 2012


Revision: 9623
          http://trac.macosforge.org/projects/calendarserver/changeset/9623
Author:   glyph at apple.com
Date:     2012-08-11 01:55:00 -0700 (Sat, 11 Aug 2012)
Log Message:
-----------
AMP responders must return a value.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/q/twext/enterprise/queue.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/q/

Modified: CalendarServer/branches/users/glyph/q/twext/enterprise/queue.py
===================================================================
--- CalendarServer/branches/users/glyph/q/twext/enterprise/queue.py	2012-08-11 08:54:59 UTC (rev 9622)
+++ CalendarServer/branches/users/glyph/q/twext/enterprise/queue.py	2012-08-11 08:55:00 UTC (rev 9623)
@@ -15,6 +15,7 @@
 from functools import wraps
 
 from datetime import datetime
+from twisted.internet.defer import returnValue
 from os import getpid
 
 
@@ -131,7 +132,7 @@
 
 class ConnectionFromMaster(AMP):
     """
-    This is in the child process.  It processes requests from its own master to
+    This is in a worker process.  It processes requests from its own master to
     do work.
     """
 
@@ -159,6 +160,7 @@
         workItem = yield workItemClass.load(workID)
         # TODO: verify that workID is the primary key someplace.
         yield workItem.doWork()
+        returnValue({})
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120811/4bf518cf/attachment-0001.html>


More information about the calendarserver-changes mailing list