---
title: PD节点之间任务状态查询接口
description: "查询PD节点之间的任务状态。"
url: https://www.hiascend.com/document/detail/zh/mindie/latest/mindiellm/llmdev/mindie_llm0327.html
sourcePath: /source/zh/mindie/310/mindiellm/llmdev/mindie_llm0327.html
indexId: 95927e20894b1f9fe8a350e23f5cad74a96125520b071fe665dc602f473b2c2f58
---
# PD节点之间任务状态查询接口

#### 接口功能

查询PD节点之间的任务状态。

该接口不需要用户调用，属于Coordinator和Controller之间的通信接口。


#### 接口格式

操作类型：POST

URL：https://{ip}:{port}/v1/instances/query_tasks

- {ip}优先取  启动命令(https://www.hiascend.com/document/detail/zh/mindie/310/mindiellm/llmdev/mindie_motor_cpp/user_guide/cluster_management_component/coordinator.md#启动调度器)
参数中的{manage_ip}；如果没有配置该命令行参数，则取配置文件ms_coordinator.json的“manage_ip”参数的值。
- {port}优先取  启动命令(https://www.hiascend.com/document/detail/zh/mindie/310/mindiellm/llmdev/mindie_motor_cpp/user_guide/cluster_management_component/coordinator.md#启动调度器)
参数中的{manage_port}；如果没有配置该命令行参数，则取配置文件ms_coordinator.json的“manage_port”参数的值。


#### 请求参数

| 参数 | 类型 | 说明 |
| --- | --- | --- |
| p\_id | uint64\_t | 必填。 P节点ID。 |
| d\_id | uint64\_t | 必填。 D节点ID。 |


#### 使用样例

请求样例：

```
POST https://{ip}:{port}/v1/instances/query_tasks
```

请求消息体：

```
{
"p_id": 0,
"d_id": 1
}
```

响应样例：

- PD之间没有任务

```
{
"is_end": true
}
```


- PD之间有任务

```
{
"is_end": false
}
```


#### 输出说明

| 参数 | 类型 | 说明 |
| --- | --- | --- |
| is\_end | bool | PD之间任务是否结束。 |
