4dacfa95d2
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 |
||
---|---|---|
.. | ||
calendarresource.asciidoc | ||
close-job.asciidoc | ||
datafeedresource.asciidoc | ||
delete-calendar-event.asciidoc | ||
delete-calendar-job.asciidoc | ||
delete-calendar.asciidoc | ||
delete-datafeed.asciidoc | ||
delete-filter.asciidoc | ||
delete-forecast.asciidoc | ||
delete-job.asciidoc | ||
delete-snapshot.asciidoc | ||
eventresource.asciidoc | ||
filterresource.asciidoc | ||
find-file-structure.asciidoc | ||
flush-job.asciidoc | ||
forecast.asciidoc | ||
get-bucket.asciidoc | ||
get-calendar-event.asciidoc | ||
get-calendar.asciidoc | ||
get-category.asciidoc | ||
get-datafeed-stats.asciidoc | ||
get-datafeed.asciidoc | ||
get-filter.asciidoc | ||
get-influencer.asciidoc | ||
get-job-stats.asciidoc | ||
get-job.asciidoc | ||
get-overall-buckets.asciidoc | ||
get-record.asciidoc | ||
get-snapshot.asciidoc | ||
jobcounts.asciidoc | ||
jobresource.asciidoc | ||
ml-api.asciidoc | ||
open-job.asciidoc | ||
post-calendar-event.asciidoc | ||
post-data.asciidoc | ||
preview-datafeed.asciidoc | ||
put-calendar-job.asciidoc | ||
put-calendar.asciidoc | ||
put-datafeed.asciidoc | ||
put-filter.asciidoc | ||
put-job.asciidoc | ||
resultsresource.asciidoc | ||
revert-snapshot.asciidoc | ||
snapshotresource.asciidoc | ||
start-datafeed.asciidoc | ||
stop-datafeed.asciidoc | ||
update-datafeed.asciidoc | ||
update-filter.asciidoc | ||
update-job.asciidoc | ||
update-snapshot.asciidoc | ||
validate-detector.asciidoc | ||
validate-job.asciidoc |