mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
697a08e742
At present the PersistentTasksService is created inside the ML plugin. This is undesirable, as other plugins will use persistent tasks in the near future. This change refactors the startup code so that the PersistentTasksService no longer needs to be passed to any constructors for ML components. A future change will still be required to actually move the initialization of the PersistentTasksClusterService, PersistentTasksService and PersistentTasksExecutorRegistry out of the ML plugin, but following this change it should be fairly simple. Original commit: elastic/x-pack-elasticsearch@3c2a8e020e