Get Task Queue Size for Individual Tasks
Endpoint: GET /tasks/queue/sizes
Gets the task queue size for a specified task type. The queue size represents the number of tasks of the given type waiting to be processed.
Query parameters
Parameter | Description | Type | Required/ Optional |
---|---|---|---|
taskType | The type of the task to be queried. For predefined tasks, this indicates the task type, such as HTTP. For user-defined tasks, it corresponds to the name of the task definition, such as python_worker. | string | Required. |
Response
Returns the queue size of the specified task type.
Examples
Get task queue for HTTP tasks
Request
curl -X 'GET' \
'https://<YOUR_CLUSTER>/api/tasks/queue/sizes?taskType=HTTP' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>'
Response
{
"HTTP": 3
}