Ejemplo n.º 1
0
 def heartbeat(self, worker):
     nodeInfo = NodeInfo.from_dict(worker)
     return self.master.heartbeat(nodeInfo)
Ejemplo n.º 2
0
 def logout_worker(self, worker):
     nodeInfo = NodeInfo.from_dict(worker)
     return self.master.remove_worker(nodeInfo)
Ejemplo n.º 3
0
 def task_complete(self, worker, taskResult):
     nodeInfo = NodeInfo.from_dict(worker)
     result = TaskResult.from_dict(taskResult)
     return self.master.task_complete(nodeInfo, result)
Ejemplo n.º 4
0
 def register_worker(self, worker):
     nodeInfo = NodeInfo.from_dict(worker)
     return self.master.register_worker(nodeInfo)
Ejemplo n.º 5
0
 def heartbeat(self, worker):
     nodeInfo = NodeInfo.from_dict(worker)
     return self.master.heartbeat(nodeInfo)
Ejemplo n.º 6
0
 def task_complete(self, worker, taskResult):
     nodeInfo = NodeInfo.from_dict(worker)
     result = TaskResult.from_dict(taskResult)
     return self.master.task_complete(nodeInfo, result)
Ejemplo n.º 7
0
 def logout_worker(self, worker):
     nodeInfo = NodeInfo.from_dict(worker)
     return self.master.remove_worker(nodeInfo)
Ejemplo n.º 8
0
 def register_worker(self, worker):
     nodeInfo = NodeInfo.from_dict(worker)
     return self.master.register_worker(nodeInfo)