mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Synthetics] Remove run soon for sync private location task !! (#222062)
## Summary Remove run soon for sync private location task !! It's not needed since it's a scheduled task running every 10 minutes . --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
f015ead79e
commit
616db37896
2 changed files with 2 additions and 3 deletions
|
@ -115,8 +115,8 @@ export class Plugin implements PluginType {
|
||||||
this.server.spaces = pluginsStart.spaces;
|
this.server.spaces = pluginsStart.spaces;
|
||||||
this.server.isElasticsearchServerless = coreStart.elasticsearch.getCapabilities().serverless;
|
this.server.isElasticsearchServerless = coreStart.elasticsearch.getCapabilities().serverless;
|
||||||
}
|
}
|
||||||
this.syncPrivateLocationMonitorsTask?.start().catch(() => {
|
this.syncPrivateLocationMonitorsTask?.start().catch((e) => {
|
||||||
this.logger.error('Failed to start sync private location monitors task');
|
this.logger.error('Failed to start sync private location monitors task', { error: e });
|
||||||
});
|
});
|
||||||
|
|
||||||
this.syntheticsService?.start(pluginsStart.taskManager);
|
this.syntheticsService?.start(pluginsStart.taskManager);
|
||||||
|
|
|
@ -139,7 +139,6 @@ export class SyncPrivateLocationMonitorsTask {
|
||||||
taskType: TASK_TYPE,
|
taskType: TASK_TYPE,
|
||||||
params: {},
|
params: {},
|
||||||
});
|
});
|
||||||
await taskManager.runSoon(TASK_ID);
|
|
||||||
logger.debug(`Sync private location monitors task scheduled successfully`);
|
logger.debug(`Sync private location monitors task scheduled successfully`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue