def dealAddInstance(self, session, task, params): #一般的单个机器任务 if task.result == Task.RESULT_SUCCESS: database.update_instance(session, task.host, task.role, Instance.STATUS_STOP) else: database.del_instance(session, task.host, task.role)
def dealDelInstance(self, session, task, prams): if task.result == Task.RESULT_SUCCESS: database.del_instance(session, task.host, task.role)
def dealDelInstance(self,session,task,prams): if task.result == Task.RESULT_SUCCESS : database.del_instance(session,task.host,task.role)
def dealAddInstance(self,session,task,params): #一般的单个机器任务 if task.result == Task.RESULT_SUCCESS : database.update_instance(session,task.host,task.role,Instance.STATUS_STOP) else: database.del_instance(session,task.host,task.role)