pending_tasks.asciidoc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [[cat-pending-tasks]]
  2. === cat pending tasks API
  3. ++++
  4. <titleabbrev>cat pending tasks</titleabbrev>
  5. ++++
  6. Returns cluster-level changes that have not yet been executed, similar to the
  7. <<cluster-pending, pending cluster tasks>> API.
  8. [[cat-pending-tasks-api-request]]
  9. ==== {api-request-title}
  10. `GET /_cat/pending_tasks`
  11. [[cat-pending-tasks-api-query-params]]
  12. ==== {api-query-parms-title}
  13. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=http-format]
  14. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=cat-h]
  15. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=help]
  16. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=local]
  17. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=master-timeout]
  18. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=cat-s]
  19. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=time]
  20. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=cat-v]
  21. [[cat-pending-tasks-api-example]]
  22. ==== {api-examples-title}
  23. [source,console]
  24. --------------------------------------------------
  25. GET /_cat/pending_tasks?v
  26. --------------------------------------------------
  27. The API returns the following response:
  28. [source,txt]
  29. --------------------------------------------------
  30. insertOrder timeInQueue priority source
  31. 1685 855ms HIGH update-mapping [foo][t]
  32. 1686 843ms HIGH update-mapping [foo][t]
  33. 1693 753ms HIGH refresh-mapping [foo][[t]]
  34. 1688 816ms HIGH update-mapping [foo][t]
  35. 1689 802ms HIGH update-mapping [foo][t]
  36. 1690 787ms HIGH update-mapping [foo][t]
  37. 1691 773ms HIGH update-mapping [foo][t]
  38. --------------------------------------------------
  39. // TESTRESPONSE[s/(\n.+)+/(\\n.+)*/ non_json]
  40. // We can't assert anything about the tasks in progress here because we don't
  41. // know what might be in progress....