示例#1
0
    def __init__(self):
        assert ApplicationClient is not None
        self._app_client = ApplicationClient.from_current()

        self._nodes = defaultdict(set)
        self._supervisor_watch_task = None
        self._role_to_events = defaultdict(list)
示例#2
0
 def app_client(self):
     if not hasattr(self, '_app_client'):
         self._app_client = ApplicationClient.from_current()
     return self._app_client