pending_tasks.asciidoc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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::{docdir}/rest-api/common-parms.asciidoc[tag=http-format]
  14. include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-h]
  15. include::{docdir}/rest-api/common-parms.asciidoc[tag=help]
  16. include::{docdir}/rest-api/common-parms.asciidoc[tag=local]
  17. include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
  18. include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
  19. include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
  20. [[cat-pending-tasks-api-example]]
  21. ==== {api-examples-title}
  22. [source,console]
  23. --------------------------------------------------
  24. GET /_cat/pending_tasks?v
  25. --------------------------------------------------
  26. The API returns the following response:
  27. [source,txt]
  28. --------------------------------------------------
  29. insertOrder timeInQueue priority source
  30. 1685 855ms HIGH update-mapping [foo][t]
  31. 1686 843ms HIGH update-mapping [foo][t]
  32. 1693 753ms HIGH refresh-mapping [foo][[t]]
  33. 1688 816ms HIGH update-mapping [foo][t]
  34. 1689 802ms HIGH update-mapping [foo][t]
  35. 1690 787ms HIGH update-mapping [foo][t]
  36. 1691 773ms HIGH update-mapping [foo][t]
  37. --------------------------------------------------
  38. // TESTRESPONSE[s/(\n.+)+/(\\n.+)*/ non_json]
  39. // We can't assert anything about the tasks in progress here because we don't
  40. // know what might be in progress....