예제 #1
0
 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)
예제 #2
0
 def dealDelInstance(self, session, task, prams):
     if task.result == Task.RESULT_SUCCESS:
         database.del_instance(session, task.host, task.role)
예제 #3
0
파일: callback_lib.py 프로젝트: caimaoy/uhp
 def dealDelInstance(self,session,task,prams):
     if task.result == Task.RESULT_SUCCESS :
         database.del_instance(session,task.host,task.role)
예제 #4
0
파일: callback_lib.py 프로젝트: caimaoy/uhp
 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)