[Checkins] SVN: Sandbox/gotcha/z3c.taskqueue/src/z3c/taskqueue/interfaces.py putting back on interface methods that had been put back on classes
Godefroid Chapelle
gotcha at bubblenet.be
Thu Apr 22 06:34:26 EDT 2010
Log message for revision 111254:
putting back on interface methods that had been put back on classes
Changed:
U Sandbox/gotcha/z3c.taskqueue/src/z3c/taskqueue/interfaces.py
-=-
Modified: Sandbox/gotcha/z3c.taskqueue/src/z3c/taskqueue/interfaces.py
===================================================================
--- Sandbox/gotcha/z3c.taskqueue/src/z3c/taskqueue/interfaces.py 2010-04-22 09:43:52 UTC (rev 111253)
+++ Sandbox/gotcha/z3c.taskqueue/src/z3c/taskqueue/interfaces.py 2010-04-22 10:34:26 UTC (rev 111254)
@@ -131,7 +131,28 @@
def processNext():
"""Process the next job in the queue."""
+ def process():
+ """Process all scheduled jobs.
+ This call blocks the thread it is running in.
+ """
+
+ def startProcessing():
+ """Start processing jobs.
+
+ This method has to be called after every server restart.
+ """
+
+ def stopProcessing():
+ """Stop processing jobs."""
+
+ def isProcessing():
+ """Check whether the jobs are being processed.
+
+ Return a boolean representing the state.
+ """
+
+
class IJob(interface.Interface):
"""An internal job object."""
More information about the checkins
mailing list