Search in sources :

Example 1 with TaskScheduler

use of edu.iu.dsc.tws.tsched.taskscheduler.TaskScheduler in project twister2 by DSC-SPIDAL.

the class TaskExecutor method plan.

/**
 * Create an execution plan from the given graph
 *
 * @param graph task graph
 * @return the data set
 */
public ExecutionPlan plan(ComputeGraph graph) {
    TaskScheduler taskScheduler = new TaskScheduler();
    taskScheduler.initialize(config);
    WorkerPlan workerPlan = createWorkerPlan();
    TaskSchedulePlan taskSchedulePlan = taskScheduler.schedule(graph, workerPlan);
    ExecutionPlanBuilder executionPlanBuilder = new ExecutionPlanBuilder(workerID, workerInfoList, communicator, this.checkpointingClient);
    return executionPlanBuilder.build(config, graph, taskSchedulePlan);
}
Also used : TaskSchedulePlan(edu.iu.dsc.tws.api.compute.schedule.elements.TaskSchedulePlan) ExecutionPlanBuilder(edu.iu.dsc.tws.executor.core.ExecutionPlanBuilder) TaskScheduler(edu.iu.dsc.tws.tsched.taskscheduler.TaskScheduler) WorkerPlan(edu.iu.dsc.tws.api.compute.schedule.elements.WorkerPlan)

Aggregations

TaskSchedulePlan (edu.iu.dsc.tws.api.compute.schedule.elements.TaskSchedulePlan)1 WorkerPlan (edu.iu.dsc.tws.api.compute.schedule.elements.WorkerPlan)1 ExecutionPlanBuilder (edu.iu.dsc.tws.executor.core.ExecutionPlanBuilder)1 TaskScheduler (edu.iu.dsc.tws.tsched.taskscheduler.TaskScheduler)1