Esempio n. 1
0
 def __init__(self, cluster, tasks=None):
     self.cluster = cluster
     self.tasks = tasks or \
         objects.Cluster.get_deployment_tasks(cluster)
     self.graph = GraphSolver()
     self.graph.add_tasks(self.tasks)
     self.serializers = TaskSerializers()
Esempio n. 2
0
 def __init__(self, cluster):
     self.cluster = cluster
     self.tasks = objects.Cluster.get_deployment_tasks(cluster)
     self.graph = DeploymentGraph()
     self.graph.add_tasks(self.tasks)
     self.serializers = TaskSerializers()