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()
def __init__(self, redisp=6379): super(Task, self).__init__() self.__redis_connection = redis.Redis(host='redis', port=redisp, db=0) self.__util = TaskUtil()