Exemplo n.º 1
0
 def __init__(self, model, name):
     self.model = model
     self.name = name
     self.available_set = set()
     self.nodes_by_name = {}
     self.locked = False
     self.incarnation = model._get_incarnation()
Exemplo n.º 2
0
 def __init__(self, model, task_id, name, job, task_type, node_name,
              description):
     self.incarnation = model._get_incarnation()
     self.task_id = task_id
     self.name = name
     self.job = job
     self.task_type = task_type
     self.node_name = node_name
     self.description = description
     self.result_status = None