Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive Watch #53

Closed
codekoala opened this issue May 4, 2014 · 2 comments
Closed

Recursive Watch #53

codekoala opened this issue May 4, 2014 · 2 comments

Comments

@codekoala
Copy link

The etcd supports recursive watching on directories, but this library does not. Please implement this.

https://coreos.com/docs/distributed-configuration/getting-started-with-etcd/#watching-the-directory

$ etcdctl watch /foo-service --recursive
$ curl -L http://127.0.0.1:4001/v2/keys/foo-service?wait=true\&recursive=true

If I have time to implement it on my own, I'll submit a pull request. But I wouldn't count on me having time anytime soon :(

@sigmunau
Copy link
Contributor

sigmunau commented May 5, 2014

use the read method for that. Like this

etcd_client.read("/my/key", recursive=True, wait=True, waitIndex=someindex, timeout=0)

@lavagetto
Copy link
Collaborator

What @sigmunau suggested is correct, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants