def __init__(self): self._index = 1 self._slave_key = utils.get_slave_key() self._task_pool = RedisClass.RedisHash( namespace='TaskPool') # 任务池 {task_id, task_dict} self._todo_list = RedisClass.RedisQueue( namespace='TodoList') # 任务队列,[task, task , ...]
def __init__(self): self._result = {} self._post = RedisClass.RedisQueue('PostData') self.initialize()
def __init__(self): self._todo_list = RedisClass.RedisQueue('TodoList') self.initialize()