OpenSearch/x-pack/plugin/ml
Dimitris Athanasiou 96b0b27f18
[7.x][ML] Set df-analytics task state to failed when appropriate (#43880) (#43906)
This introduces a `failed` state to which the data frame analytics
persistent task is set to when something unexpected fails. It could
be the process crashing, the results processor hitting some error,
etc. The failure message is then captured and set on the task state.
From there, it becomes available via the _stats API as `failure_reason`.

The df-analytics stop API now has a `force` boolean parameter. This allows
the user to call it for a failed task in order to reset it to `stopped` after
we have ensured the failure has been communicated to the user.

This commit also adds the analytics version in the persistent task
params as this allows us to prevent tasks to run on unsuitable nodes in
the future.
2019-07-03 12:41:56 +03:00
..
licenses [ML] Rename log structure to file structure (#33421) 2018-09-06 09:13:08 +01:00
qa [7.x][ML] Rename df-analytics `_id_copy` to `ml__id_copy` (#43754) (#43783) 2019-06-30 19:37:00 +03:00
src [7.x][ML] Set df-analytics task state to failed when appropriate (#43880) (#43906) 2019-07-03 12:41:56 +03:00
build.gradle [ML] Mark ml-cpp dependency as regularly changing (#43760) 2019-06-28 21:21:18 +01:00