Author: tmckay
Date: 2011-07-28 12:48:36 +0000 (Thu, 28 Jul 2011)
New Revision: 4895
Modified:
trunk/cumin/bin/cumin-web
trunk/sage/python/sage/wallaby/wallabyoperations.py
Log:
Make refresh_interval None by default in WallabyOperations. Cache thread will block
indefinitely after successful calls to Wallaby unless refresh() is called.
Modified: trunk/cumin/bin/cumin-web
===================================================================
--- trunk/cumin/bin/cumin-web 2011-07-27 20:41:25 UTC (rev 4894)
+++ trunk/cumin/bin/cumin-web 2011-07-28 12:48:36 UTC (rev 4895)
@@ -28,8 +28,13 @@
cumin.wallaby_broker = brokers[0]
else:
cumin.wallaby_broker = values.wallaby_broker
+ # Let 0 indicate "no timeout", since the timeout
+ # value is an int in the config and None can't be
+ # specified
cumin.wallaby_refresh = values.wallaby_refresh
-
+ if cumin.wallaby_refresh == 0:
+ cumin.wallaby_refresh = None
+
def main():
# Do our own simple option check so we can redirect IO early
# without worrying about other options or the behavior of optParse
Modified: trunk/sage/python/sage/wallaby/wallabyoperations.py
===================================================================
--- trunk/sage/python/sage/wallaby/wallabyoperations.py 2011-07-27 20:41:25 UTC (rev
4894)
+++ trunk/sage/python/sage/wallaby/wallabyoperations.py 2011-07-28 12:48:36 UTC (rev
4895)
@@ -16,7 +16,7 @@
if imports_ok:
class WallabyOperations(object):
- def __init__(self, broker_uri, refresh_interval=60):
+ def __init__(self, broker_uri, refresh_interval=None):
self.broker_uri = broker_uri
# A wallaby Store object
Show replies by date