moksha/api/streams/datastream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 9ec0dc95bda8dc5c48becfe0077c7a21bbfe0036 Author: Luke Macken lmacken@redhat.com Date: Sat Jun 27 19:51:55 2009 -0400
Have our PollingDataStream.now default to False.
When :prop:`PollingDataStream.now` is True, Twisted will run it the DataStream immediately, before exiting __init__. This causes the rest of the hub to block, waiting for this job to finish. Setting it to False will cause it to run initially after :prop:`PollingDataStream.frequency` seconds, asynchronously.
diff --git a/moksha/api/streams/datastream.py b/moksha/api/streams/datastream.py index 94bdcfe..d808b77 100644 --- a/moksha/api/streams/datastream.py +++ b/moksha/api/streams/datastream.py @@ -46,7 +46,7 @@ class PollingDataStream(DataStream): and calls the :meth:`poll` method. """ frequency = None # Either a timedelta object, or the number of seconds - now = True + now = False
def __init__(self): super(PollingDataStream, self).__init__()
moksha-commits@lists.fedorahosted.org