Created
August 11, 2014 14:43
-
-
Save dado-prateek/02516a252d3ba08b9635 to your computer and use it in GitHub Desktop.
Forever retry reconnection every 6 seconds for kazoo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kazoo.client import KazooClient | |
from kazoo.retry import KazooRetry | |
retry = KazooRetry(max_tries=-1, max_delay=6) | |
zk = KazooClient(hosts='127.0.0.1:2181', connection_retry=retry) | |
zk.start(timeout=None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment