2013-11-29 02:08:54 -05:00
|
|
|
[[cat-pending-tasks]]
|
2019-08-13 08:35:08 -04:00
|
|
|
=== cat pending tasks API
|
|
|
|
++++
|
|
|
|
<titleabbrev>cat pending tasks</titleabbrev>
|
|
|
|
++++
|
2013-11-29 02:08:54 -05:00
|
|
|
|
2019-08-08 08:31:43 -04:00
|
|
|
Returns cluster-level changes that have not yet been executed, similar to the
|
|
|
|
<<cluster-pending, pending cluster tasks>> API.
|
|
|
|
|
|
|
|
[[cat-pending-tasks-api-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`GET /_cat/pending_tasks`
|
|
|
|
|
|
|
|
[[cat-pending-tasks-api-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=http-format]
|
2019-08-08 08:31:43 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=cat-h]
|
2019-08-08 08:31:43 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=help]
|
2019-08-08 08:31:43 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=local]
|
2019-08-08 08:31:43 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=master-timeout]
|
2019-08-08 08:31:43 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=cat-s]
|
2019-08-08 08:31:43 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=time]
|
2019-10-10 09:48:40 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=cat-v]
|
2019-08-08 08:31:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[cat-pending-tasks-api-example]]
|
|
|
|
==== {api-examples-title}
|
2013-11-29 02:08:54 -05:00
|
|
|
|
2019-09-09 13:38:14 -04:00
|
|
|
[source,console]
|
2016-10-14 14:12:09 -04:00
|
|
|
--------------------------------------------------
|
2021-01-12 08:34:33 -05:00
|
|
|
GET /_cat/pending_tasks?v=true
|
2016-10-14 14:12:09 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
|
2019-08-08 08:31:43 -04:00
|
|
|
The API returns the following response:
|
2016-10-14 14:12:09 -04:00
|
|
|
|
2016-10-25 10:56:30 -04:00
|
|
|
[source,txt]
|
2013-11-29 02:08:54 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
insertOrder timeInQueue priority source
|
|
|
|
1685 855ms HIGH update-mapping [foo][t]
|
|
|
|
1686 843ms HIGH update-mapping [foo][t]
|
|
|
|
1693 753ms HIGH refresh-mapping [foo][[t]]
|
|
|
|
1688 816ms HIGH update-mapping [foo][t]
|
|
|
|
1689 802ms HIGH update-mapping [foo][t]
|
|
|
|
1690 787ms HIGH update-mapping [foo][t]
|
|
|
|
1691 773ms HIGH update-mapping [foo][t]
|
|
|
|
--------------------------------------------------
|
2019-06-10 09:33:32 -04:00
|
|
|
// TESTRESPONSE[s/(\n.+)+/(\\n.+)*/ non_json]
|
2016-10-14 14:12:09 -04:00
|
|
|
// We can't assert anything about the tasks in progress here because we don't
|
|
|
|
// know what might be in progress....
|