def recv(self): res = self.db.redis().blpop('ExpiredPool', timeout=redis_conf.getint( 'expiredpool_timeout', 5)) if not res or not res[0] or not res[1]: return return res
def recv(self): chnl,msg = API.queue_bpop( self.chnls, timeout=redis_conf.getint('channel_timeout',60) ) if not chnl or not msg: return return (chnl,msg)
def recv(self): res = self.db.redis().blpop( 'ExpiredPool', timeout=redis_conf.getint('expiredpool_timeout',5) ) if not res or not res[0] or not res[1]: return return res
def recv(self): chnl, msg = API.queue_bpop(self.chnls, timeout=redis_conf.getint( 'channel_timeout', 60)) if not chnl or not msg: return return (chnl, msg)