(self, oldnode, step, newnode)
Downgrade old root?
Downgrade old root?
Downgrade old root?
def demote_node(self, oldnode, step, newnode):
        """Downgrade old root?"""
        q = "select * from pgq_node.demote_root(%s, %s, %s)"
        res = self.node_cmd(oldnode, q, [self.queue_name, step, newnode])
        if res:
            return res[0]['last_tick']
def demote_node ( self , oldnode , step , newnode ) : q = "select * from pgq_node.demote_root(%s, %s, %s)" res = self . node_cmd ( oldnode , q , [ self . queue_name , step , newnode ] ) if res : return res [ 0 ] [ 'last_tick' ]