return new MeasurementSuite(activeMetrics.build());
}
private void runEvaluations(DAGNode<JobGraph.Node, JobGraph.Edge> graph) throws TaskExecutionException, InterruptedException {
int nthreads = getProject().getConfig().getThreadCount();
TaskGraphExecutor exec;
logger.info("Running evaluator with {} threads", nthreads);
if (nthreads == 1) {
exec = TaskGraphExecutor.singleThreaded();
} else {
exec = TaskGraphExecutor.create(nthreads);
}
try {
exec.execute(graph);
} catch (ExecutionException e) {
Throwables.propagateIfInstanceOf(e.getCause(), TaskExecutionException.class);
throw new TaskExecutionException("error in evaluation job task", e.getCause());
}
}