I want to add watch on all children nodes of a node in Python using kazoo client but ChildrenWatch
only watches for child add or remove not for data update of any child node. I am searching for a simple recipe which does this task.
Sample code will be like this
from kazoo.client import KazooClient
zk = KazooClient(hosts='127.0.0.1:2181')
zk.start()
@zk.SomeRecipe("/root")
def watch_children_update(event):
print("Updated child at path:%s data:%s stat:%s" % event.path, event.data, event.stat)