Example #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
Example #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)
Example #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
Example #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)