Skip to content

Commit b2195fb

Browse files
author
Hendrik Muhs
committed
adapt to upstream changes
1 parent 192e6de commit b2195fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x-pack/plugin/ml-feature-index-builder/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compileTestJava.options.compilerArgs << "-Xlint:-rawtypes"
1616
dependencies {
1717
compileOnly "org.elasticsearch:elasticsearch:${version}"
1818

19-
compileOnly project(path: xpackModule('core'), configuration: 'shadow')
19+
compileOnly project(path: xpackModule('core'), configuration: 'default')
2020
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
2121
}
2222

x-pack/plugin/ml-feature-index-builder/src/main/java/org/elasticsearch/xpack/ml/featureindexbuilder/FeatureIndexBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ public List<RestHandler> getRestHandlers(final Settings settings, final RestCont
100100
if (!enabled) {
101101
return emptyList();
102102
}
103-
103+
104104
return Arrays.asList(
105105
new ActionHandler<>(PutFeatureIndexBuilderJobAction.INSTANCE, TransportPutFeatureIndexBuilderJobAction.class),
106106
new ActionHandler<>(StartFeatureIndexBuilderJobAction.INSTANCE, TransportStartFeatureIndexBuilderJobAction.class)
107107
);
108108
}
109-
109+
110110
@Override
111111
public List<ExecutorBuilder<?>> getExecutorBuilders(Settings settings) {
112112
if (false == enabled) {
@@ -126,7 +126,7 @@ public List<PersistentTasksExecutor<?>> getPersistentTasksExecutor(ClusterServic
126126
return emptyList();
127127
}
128128

129-
SchedulerEngine schedulerEngine = new SchedulerEngine(Clock.systemUTC());
129+
SchedulerEngine schedulerEngine = new SchedulerEngine(settings, Clock.systemUTC());
130130
return Collections.singletonList(new FeatureIndexBuilderJobTask.FeatureIndexBuilderJobPersistentTasksExecutor(settings, client,
131131
schedulerEngine, threadPool));
132132
}

0 commit comments

Comments
 (0)