# cat pending tasks

原文链接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cat-pending-tasks.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cat-pending-tasks.html)

译文链接 : [http://www.apache.wiki/display/Elasticsearch/cat+pending+tasks](http://www.apache.wiki/display/Elasticsearch/cat+pending+tasks)

贡献者 : [那伊抹微笑](/display/~wangyangting)

**`pending_tasks`**使用了一个更方便的表格格式，提供了和 [`/_cluster/pending_tasks`](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-pending.html "Pending cluster tasks") API 一样的信息。

```
% curl 'localhost:9200/_cat/pending_tasks?v'
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]
```