[CalendarServer-changes] [9858] CalendarServer/trunk/twext/web2/metafd.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 25 18:09:57 PDT 2012


Revision: 9858
          http://trac.calendarserver.org//changeset/9858
Author:   sagen at apple.com
Date:     2012-09-25 18:09:56 -0700 (Tue, 25 Sep 2012)
Log Message:
-----------
Checking in a temporary implementation of waitForCompletion( ) to silence the shutdown tracebacks; fix forthcoming tomorrow

Modified Paths:
--------------
    CalendarServer/trunk/twext/web2/metafd.py

Modified: CalendarServer/trunk/twext/web2/metafd.py
===================================================================
--- CalendarServer/trunk/twext/web2/metafd.py	2012-09-26 00:12:48 UTC (rev 9857)
+++ CalendarServer/trunk/twext/web2/metafd.py	2012-09-26 01:09:56 UTC (rev 9858)
@@ -23,6 +23,7 @@
 from twisted.application.service import MultiService, Service
 from twisted.internet import reactor
 from twisted.internet.tcp import Server
+from twisted.internet.defer import succeed
 
 log = Logger()
 
@@ -288,3 +289,11 @@
     @property
     def outstandingRequests(self):
         return self.limiter.outstandingRequests
+
+    def waitForCompletion(self):
+        """
+        Return a Deferred that will fire when all outstanding requests have completed.
+        @return: A Deferred with a result of None
+        """
+        # TODO: Make this actually wait for outstandingRequests to drop to zero
+        return succeed(None)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120925/c8847a65/attachment.html>


More information about the calendarserver-changes mailing list