(self, dst_db, tick_id)
On combined-branch leaf needs to wait from tick
        to appear from combined-root.
On combined-branch leaf needs to wait from tick
        to appear from combined-root.
On combined - branch leaf needs to wait from tick to appear from combined - root .
def wait_for_tick(self, dst_db, tick_id):
        """On combined-branch leaf needs to wait from tick
        to appear from combined-root.
        """
        while 1:
            cst = self._consumer_state
            if cst['completed_tick'] >= tick_id:
                return
            self.sleep(10 * self.loop_delay)
            self._consumer_state = self.refresh_state(dst_db)
            if not self.looping:
                sys.exit(0)
def wait_for_tick ( self , dst_db , tick_id ) : while 1 : cst = self . _consumer_state if cst [ 'completed_tick' ] >= tick_id : return self . sleep ( 10 * self . loop_delay ) self . _consumer_state = self . refresh_state ( dst_db ) if not self . looping : sys . exit ( 0 )