(self)
Wait for next tick from root.
Wait for next tick from root.
Wait for next tick from root .
def cmd_wait_root(self):
        """Wait for next tick from root."""

        self.load_local_info()

        if self.queue_info.local_node.type == 'root':
            self.log.info("Current node is root, no need to wait")
            return

        self.log.info("Finding root node")
        root_node = self.find_root_node()
        self.log.info("Root is %s", root_node)

        dst_db = self.get_database(self.initial_db_name)
        self.wait_for_node(dst_db, root_node)
def cmd_wait_root ( self ) : self . load_local_info ( ) if self . queue_info . local_node . type == 'root' : self . log . info ( "Current node is root, no need to wait" ) return self . log . info ( "Finding root node" ) root_node = self . find_root_node ( ) self . log . info ( "Root is %s" , root_node ) dst_db = self . get_database ( self . initial_db_name ) self . wait_for_node ( dst_db , root_node )