hi i am using gevent with kazoo, i am doing exactly as the async example ,but get nothing,the callback does not work,even not simply print any word,such as 123,please help!
code as below:
import sys
from kazoo.exceptions import ConnectionLossException
from kazoo.exceptions import NoAuthException
hi i am using gevent with kazoo, i am doing exactly as the async example ,but get nothing,the callback does not work,even not simply print any word,such as 123,please help! code as below:
import sys
from kazoo.exceptions import ConnectionLossException from kazoo.exceptions import NoAuthException
def my_callback(async_obj): try: children = async_obj.get() print 123 except (ConnectionLossException, NoAuthException): sys.exit(1)
async_obj = zk.get_children_async("/some/node") async_obj.rawlink(my_callback)