younifyd
Menu

Get the pending cluster tasks

Get the pending cluster tasks

GET/_cluster/pending_tasks

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get the pending cluster tasks action (under cluster).
  3. Fill in the fields below, then reference the result from later steps as {{getThePendingClusterTasks.response.data}}.

Request

Query parameters

localboolean

If `true`, the request retrieves information from the local node only. If `false`, information is retrieved from the master node.

master_timeoutoneOf

Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

Response

Returns 200 with an object. Read it in later steps with {{getThePendingClusterTasks.response.data.<field>}}.

tasksarray<object>
executingbooleanrequired

Indicates whether the pending tasks are currently executing or not.

insert_ordernumberrequired

The number that represents when the task has been inserted into the task queue.

prioritystringrequired

The priority of the pending task. The valid priorities in descending priority order are: `IMMEDIATE` > `URGENT` > `HIGH` > `NORMAL` > `LOW` > `LANGUID`.

sourcestringrequired

A general description of the cluster task that may include a reason and origin.

time_in_queueany

The time since the task is waiting for being performed.

time_in_queue_millisanyrequired

The time expressed in milliseconds since the task is waiting for being performed.

json
{
  "tasks": [
    {
      "executing": false,
      "insert_order": 0,
      "priority": "string",
      "source": "string",
      "time_in_queue_millis": null,
      "time_in_queue": null
    }
  ]
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Get the pending cluster tasks — Elasticsearch — Documentation