2013-11-29 02:08:54 -05:00
|
|
|
[[cat-pending-tasks]]
|
2014-05-16 15:43:35 -04:00
|
|
|
== cat pending tasks
|
2013-11-29 02:08:54 -05:00
|
|
|
|
|
|
|
`pending_tasks` provides the same information as the
|
2013-12-02 09:29:47 -05:00
|
|
|
<<cluster-pending,`/_cluster/pending_tasks`>> API in a
|
2016-10-14 14:12:09 -04:00
|
|
|
convenient tabular format. For example:
|
2013-11-29 02:08:54 -05:00
|
|
|
|
2016-10-14 14:12:09 -04:00
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
GET /_cat/pending_tasks?v
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
|
|
|
|
Might look like:
|
|
|
|
|
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]
|
|
|
|
--------------------------------------------------
|
2016-10-14 14:12:09 -04:00
|
|
|
// TESTRESPONSE[s/(\n.+)+/(\\n.+)*/ _cat]
|
|
|
|
// We can't assert anything about the tasks in progress here because we don't
|
|
|
|
// know what might be in progress....
|