| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
Worker --+
|
PollingWorker
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
PollingWorker is built on the base Worker class. The main difference is that it doesn't expect that the 'queue-in' object will provide a get method that blocks until it recieves a message. It will wait for 'polling_time' (default: 60 seconds) and then call the get method. If the method returns a value that evaluates to False, then the worker is put to sleep for the polling_time again to try again. The wait is performed by "time.sleep(polling_wait)" If a message of any sort is received, then the message is passed through the normal pattern of starttask/endtask.
|
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Mon Sep 7 17:17:41 2009 | http://epydoc.sourceforge.net |