Skip to content

Commit c5fc56c

Browse files
Wylie Conlonelasticmachine
andauthored
Fix task manager cancel warning (elastic#63756) (elastic#63872)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 69a128e commit c5fc56c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

x-pack/plugins/apm/server/lib/apm_telemetry/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export async function createApmTelemetry({
8787
return {
8888
run: async () => {
8989
await collectAndStore();
90-
}
90+
},
91+
cancel: async () => {}
9192
};
9293
}
9394
}

x-pack/plugins/lens/server/usage/task.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ export function telemetryTaskRunner(
207207
})
208208
.catch(errMsg => logger.warn(`Error executing lens telemetry task: ${errMsg}`));
209209
},
210+
async cancel() {},
210211
};
211212
};
212213
}

x-pack/plugins/oss_telemetry/server/lib/tasks/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export function registerTasks({
3737
createTaskRunner({ taskInstance }: { taskInstance: TaskInstance }) {
3838
return {
3939
run: visualizationsTaskRunner(taskInstance, config, elasticsearch),
40+
cancel: async () => {},
4041
};
4142
},
4243
},

0 commit comments

Comments
 (0)