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, namespace='OpsCacheIP'): self._ip_mgr = RedisClass.RedisHash(namespace)
def __init__(self, namespace='LocateManage'): self._locate_cache = RedisClass.RedisHash(namespace)
def __init__(self, namespace='TaskManage'): self._task_cache = RedisClass.RedisHash(namespace)
def __init__(self, locate_key): self._task_opt = RedisClass.RedisHash(namespace=locate_key) self._basic_schema = { 'is_del': False, 'which_slave': [], }
def __init__(self): self._todo_list = RedisClass.RedisQueue('TodoList') self.initialize()