Search in sources :

Example 1 with PipelinedRegionSchedulingStrategy

use of org.apache.flink.runtime.scheduler.strategy.PipelinedRegionSchedulingStrategy in project flink by apache.

the class SchedulingDownstreamTasksInBatchJobBenchmark method setup.

@Override
public void setup(JobConfiguration jobConfiguration) throws Exception {
    super.setup(jobConfiguration);
    schedulingStrategy = new PipelinedRegionSchedulingStrategy(schedulerOperations, schedulingTopology);
    executionVertexID = executionGraph.getJobVertex(jobVertices.get(0).getID()).getTaskVertices()[0].getID();
    for (ExecutionVertex vertex : executionGraph.getJobVertex(jobVertices.get(0).getID()).getTaskVertices()) {
        vertex.finishAllBlockingPartitions();
    }
}
Also used : PipelinedRegionSchedulingStrategy(org.apache.flink.runtime.scheduler.strategy.PipelinedRegionSchedulingStrategy) ExecutionVertex(org.apache.flink.runtime.executiongraph.ExecutionVertex)

Aggregations

ExecutionVertex (org.apache.flink.runtime.executiongraph.ExecutionVertex)1 PipelinedRegionSchedulingStrategy (org.apache.flink.runtime.scheduler.strategy.PipelinedRegionSchedulingStrategy)1