示例#1
0
 def __init__(self,
              fetch=FETCH_PORT,
              status=STATUS_PORT,
              redisp=REDIS_PORT):
     super(TaskQueue, self).__init__()
     self.__redis_connection = redis.Redis(host='redis', port=redisp, db=0)
     self.__util = TaskUtil()
示例#2
0
 def __init__(self, redisp=6379):
     super(Task, self).__init__()
     self.__redis_connection = redis.Redis(host='redis', port=redisp, db=0)
     self.__util = TaskUtil()