Skip to content

Commit

Permalink
adapt to upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrik Muhs committed Sep 5, 2018
1 parent 192e6de commit b2195fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugin/ml-feature-index-builder/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ compileTestJava.options.compilerArgs << "-Xlint:-rawtypes"
dependencies {
compileOnly "org.elasticsearch:elasticsearch:${version}"

compileOnly project(path: xpackModule('core'), configuration: 'shadow')
compileOnly project(path: xpackModule('core'), configuration: 'default')
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ public List<RestHandler> getRestHandlers(final Settings settings, final RestCont
if (!enabled) {
return emptyList();
}

return Arrays.asList(
new ActionHandler<>(PutFeatureIndexBuilderJobAction.INSTANCE, TransportPutFeatureIndexBuilderJobAction.class),
new ActionHandler<>(StartFeatureIndexBuilderJobAction.INSTANCE, TransportStartFeatureIndexBuilderJobAction.class)
);
}

@Override
public List<ExecutorBuilder<?>> getExecutorBuilders(Settings settings) {
if (false == enabled) {
Expand All @@ -126,7 +126,7 @@ public List<PersistentTasksExecutor<?>> getPersistentTasksExecutor(ClusterServic
return emptyList();
}

SchedulerEngine schedulerEngine = new SchedulerEngine(Clock.systemUTC());
SchedulerEngine schedulerEngine = new SchedulerEngine(settings, Clock.systemUTC());
return Collections.singletonList(new FeatureIndexBuilderJobTask.FeatureIndexBuilderJobPersistentTasksExecutor(settings, client,
schedulerEngine, threadPool));
}
Expand Down

0 comments on commit b2195fb

Please sign in to comment.