e392e0b1df
This adds a get task API that supports GET /_tasks/${taskId} and removes that responsibility from the list tasks API. The get task API supports wait_for_complation just as the list tasks API does but doesn't support any of the list task API's filters. In exchange, it supports falling back to the .results index when the task isn't running any more. Like any good GET API it 404s when it doesn't find the task. Then we change reindex, update-by-query, and delete-by-query to persist the task result when wait_for_completion=false. The leads to the neat behavior that, once you start a reindex with wait_for_completion=false, you can fetch the result of the task by using the get task API and see the result when it has finished. Also rename the .results index to .tasks. |
||
---|---|---|
.. | ||
allocation-explain.asciidoc | ||
health.asciidoc | ||
nodes-hot-threads.asciidoc | ||
nodes-info.asciidoc | ||
nodes-stats.asciidoc | ||
pending.asciidoc | ||
reroute.asciidoc | ||
state.asciidoc | ||
stats.asciidoc | ||
tasks.asciidoc | ||
update-settings.asciidoc |