---
title: "List runtime queue tasks by state"
method: GET
path: "/system/admin/runtime/queues/{queue}/tasks"
tags: ["System Admin"]
---

# List runtime queue tasks by state

`GET /system/admin/runtime/queues/{queue}/tasks`

## Path parameters

- `queue` string, required

## Query parameters

- `state` 'pending' | 'active' | 'scheduled' | 'retry' | 'archived' | 'completed', required
- `cursor` string
- `page_size` integer

## Response `200`

OK

- InternalHandlerRuntimeTasksResponse
  - `available` boolean
  - `has_more` boolean
  - `next_cursor` string
  - `page_size` integer
  - `tasks` GithubComTencentWeKnoraInternalTypesRuntimeTaskInfo[]
    - `allowed_actions` GithubComTencentWeKnoraInternalTypesRuntimeTaskAction[]
    - `completed_at` string
    - `data_source_id` string
    - `deadline` string
    - `enqueued_at` string
    - `id` string
    - `is_orphaned` boolean
    - `knowledge_base_id` string
    - `knowledge_count` integer
    - `knowledge_id` string
    - `last_error` string
    - `last_failed_at` string
    - `max_retry` integer
    - `next_process_at` string
    - `queue` string
    - `retried` integer
    - `source_id` string
    - `source_kb_id` string
    - `started_at` string
    - `state` 'pending' | 'active' | 'scheduled' | 'retry' | 'archived' | 'completed'
    - `sync_log_id` string
    - `target_id` string
    - `target_kb_id` string
    - `task_id` string
    - `tenant_id` integer
    - `type` string
    - `worker` string

---

[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/versions/d6921ae22ce0/schema)
