OpenSearch/docs/java-rest/high-level/ml
Dimitris Athanasiou 4dacfa95d2
[ML] Allow asynchronous job deletion (#34058)
This changes the delete job API by adding
the choice to delete a job asynchronously.
The commit adds a `wait_for_completion` parameter
to the delete job request. When set to `false`,
the action returns immediately and the response
contains the task id.

This also changes the handling of subsequent
delete requests for a job that is already being
deleted. It now uses the task framework to check
if the job is being deleted instead of the cluster
state. This is a beneficial for it is going to also
be working once the job configs are moved out of the
cluster state and into an index. Also, force delete
requests that are waiting for the job to be deleted
will not proceed with the deletion if the first task
fails. This will prevent overloading the cluster. Instead,
the failure is communicated better via notifications
so that the user may retry.

Finally, this makes the `deleting` property of the job
visible (also it was renamed from `deleted`). This allows
a client to render a deleting job differently.

Closes #32836
2018-10-05 02:41:28 +03:00
..
close-job.asciidoc HLRC: ML Close Job (#32943) 2018-08-20 16:05:56 -05:00
delete-calendar.asciidoc HLRC: Delete ML calendar (#33775) 2018-09-19 10:20:21 +01:00
delete-datafeed.asciidoc [HLRC][ML] Add ML delete datafeed API to HLRC (#33667) 2018-09-13 17:13:36 +01:00
delete-forecast.asciidoc HLRC: ML Delete Forecast API (#33526) 2018-09-11 16:32:52 -07:00
delete-job.asciidoc [ML] Allow asynchronous job deletion (#34058) 2018-10-05 02:41:28 +03:00
flush-job.asciidoc HLRC: ML Flush job (#33187) 2018-09-01 16:01:23 -05:00
forecast-job.asciidoc HLRC: ML Forecast Job (#33506) 2018-09-07 11:16:58 -05:00
get-buckets.asciidoc HLRC: ML PUT Calendar (#33362) 2018-09-14 15:00:18 +01:00
get-calendars.asciidoc HLRC: Get ML calendars (#33760) 2018-09-18 11:51:11 +01:00
get-categories.asciidoc HLRC: ML PUT Calendar (#33362) 2018-09-14 15:00:18 +01:00
get-datafeed-stats.asciidoc HLRC: ML Adding get datafeed stats API (#34271) 2018-10-04 14:43:06 -07:00
get-datafeed.asciidoc [HLRC][ML] Add ML get datafeed API to HLRC (#33715) 2018-09-16 11:54:55 +01:00
get-influencers.asciidoc HLRC: ML PUT Calendar (#33362) 2018-09-14 15:00:18 +01:00
get-job-stats.asciidoc HLRC: Adding ML Job stats (#33183) 2018-09-01 13:32:18 -05:00
get-job.asciidoc HLRC: Add ML Get Job (#32960) 2018-08-21 21:02:28 -05:00
get-overall-buckets.asciidoc HLRC: ML PUT Calendar (#33362) 2018-09-14 15:00:18 +01:00
get-records.asciidoc HLRC: ML PUT Calendar (#33362) 2018-09-14 15:00:18 +01:00
open-job.asciidoc HLRC: ML Close Job (#32943) 2018-08-20 16:05:56 -05:00
post-data.asciidoc HLRC: ML Post Data (#33443) 2018-09-07 07:04:27 -05:00
preview-datafeed.asciidoc HLRC: ML Add preview datafeed api (#34284) 2018-10-04 11:28:44 -07:00
put-calendar.asciidoc HLRC: Get ML calendars (#33760) 2018-09-18 11:51:11 +01:00
put-datafeed.asciidoc [HLRC][ML] Add ML put datafeed API to HLRC (#33603) 2018-09-12 14:52:36 +01:00
put-job.asciidoc [HLRC][ML] Add ML put datafeed API to HLRC (#33603) 2018-09-12 14:52:36 +01:00
start-datafeed.asciidoc HLRC: ML start data feed API (#33898) 2018-09-21 05:56:38 -07:00
stop-datafeed.asciidoc HLRC: ML Stop datafeed API (#33946) 2018-09-21 12:13:35 -07:00
update-job.asciidoc HLRC: ML Update Job (#33392) 2018-09-06 07:18:09 -05:00