---
title: "获取解析任务队列运行时状态"
method: GET
path: "/system/admin/runtime/queues"
tags: ["系统管理"]
---

# 获取解析任务队列运行时状态

`GET /system/admin/runtime/queues`

返回各 asynq 队列的实时深度（pending/active/scheduled/retry 等）与 worker 并发配置，仅系统管理员可见

## Response `200`

OK

- InternalHandlerRuntimeQueuesResponse
  - `available` boolean
  - `model_limiter_available` boolean
  - `models` GithubComTencentWeKnoraInternalModelsLimiterRuntimeStat[]
    - `active` integer
    - `limit` integer
    - `model_id` string
    - `name` string
    - `waiting` integer
  - `parse_concurrency` integer — compatibility alias for upstream_concurrency
  - `pools` InternalHandlerRuntimeWorkerPool[]
    - `active` integer — live workers assigned to this pool
    - `cluster_capacity` integer — sum of live server concurrency
    - `concurrency` integer — configured per instance
    - `instances` integer — live asynq server heartbeats
    - `name` string
    - `queue_count` integer
    - `utilization` number — Active / ClusterCapacity
  - `queues` GithubComTencentWeKnoraInternalTypesQueueStat[]
    - `active` integer
    - `archived` integer
    - `completed` integer
    - `failed` integer
    - `latency_ms` integer — LatencyMs is the age of the oldest pending task, in milliseconds.
    - `memory_usage_bytes` integer — MemoryUsageBytes is the approximate Redis memory the queue occupies.
    - `name` string
    - `paused` boolean — Paused reports whether the queue is paused (tasks not consumed).
    - `pending` integer
    - `pool` string — Pool is the independent worker pool that drains this queue.
    - `processed` integer — Processed / Failed are today's counters (reset daily).
    - `retry` integer
    - `scheduled` integer
    - `size` integer — Size is the total number of tasks in the queue (pending + active + scheduled + retry + aggregating + archived).
    - `weight` integer — Weight is the queue's scheduling weight inside its pool.
  - `timestamp` integer
  - `upstream_concurrency` integer
  - `wiki_concurrency` integer — compatibility field

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/abce9036def5/schema)
