Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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)