查询活动作业列表
list_active_jobsRetrieve paginated active HPC jobs—running, queued, or suspended—with filters for status, user, queue, host, memory, and runtime to monitor cluster workload.
Instructions
分页查询芯片云集群中的活动作业列表(运行中、排队中、挂起中等)。
对应芯片云 API: GET /cluster/getJob(端口 18083)。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_active_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ascend | No | 可选:排序方向(ascend,如 asc/desc 或 true/false) | |
| status | No | 可选:按作业状态筛选:RUN/PEND/PSUSP/SSUSP/USUSP/UNKWN/ZOMBI/DONE/EXIT | |
| max_mem | No | 可选:内存筛选上限/阈值(maxMem,遵循平台原参数语义) | |
| min_mem | No | 可选:内存筛选下限/阈值(minMem,遵循平台原参数语义) | |
| order_by | No | 可选:排序字段(orderBy) | |
| exec_host | No | 可选:按运行节点主机名筛选(execHost) | |
| page_size | No | 每页记录数,默认 10,最大 200 | |
| user_name | No | 可选:按作业提交用户名筛选(userName) | |
| cluster_id | No | 集群 ID(clusterId);如已配置默认集群可省略 | |
| queue_name | No | 可选:按运行队列名筛选(queueName) | |
| max_runtime | No | 可选:小于运行时长筛选,单位秒(maxRuntime) | |
| min_runtime | No | 可选:大于运行时长筛选,单位秒(minRuntime) | |
| search_text | No | 可选:按作业 ID 搜索(searchText) | |
| current_page | No | 页码,从 1 开始,默认 1 | |
| single_mem_value | No | 可选:内存数值筛选(singleMemValue) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||