mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
44c3b04bef
Converts docs for `_cat/segments`, `_cat/plugins` and `_cat/repositories` from `curl` to `// CONSOLE` so they are tested as part of the build and are cleaner to use in Console. They should work fine with `curl` with the `COPY AS CURL` link. Also swaps the `source` type of the response from `js` to `txt` because that is more correct. The syntax highlighter doesn't care. It looks at the text to figure out the language. So it looks a little funny for `_cat` responses regardless. Relates to #18160
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
[[cat-pending-tasks]]
|
|
== cat pending tasks
|
|
|
|
`pending_tasks` provides the same information as the
|
|
<<cluster-pending,`/_cluster/pending_tasks`>> API in a
|
|
convenient tabular format. For example:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
GET /_cat/pending_tasks?v
|
|
--------------------------------------------------
|
|
// CONSOLE
|
|
|
|
Might look like:
|
|
|
|
[source,txt]
|
|
--------------------------------------------------
|
|
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]
|
|
--------------------------------------------------
|
|
// 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....
|