Query Schema Comparison Subtask Details
Query the status of a specific execution subtask under a schema comparison main task.
Request URL: /openapi/v1/compareschema/queryTaskExecInfo
Request Method: GET
Before You Call
taskIdcan be obtained fromdata.taskIdin the successful response of Create Schema Comparison Task.execIdcan be obtained fromdatain the successful response of Start Schema Comparison Task or fromdata.lastExecIdreturned by Query Schema Comparison Main Task Details.
Request Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| taskId | String | Yes | Schema comparison main task ID. | cc-th6j3fs58y |
| execId | Long | Yes | Schema comparison subtask ID. | 46958 |
Response Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| success | Boolean | Whether the request is successful. | true |
| requestId | String | Request ID, which can be used for troubleshooting and tracing. | Sz5u6XOJ-hnoiwAAnjnnw3PJdiog1HEN |
| data | Object | Subtask detail object. See the fields below. | See the example below |
| message | String | Error message returned when the request fails. | exec not found |
data Fields
| Parameter | Type | Description | Example |
|---|---|---|---|
| taskId | String | Schema comparison main task ID. | cc-th6j3fs58y |
| execId | Long | Schema comparison subtask ID. | 46958 |
| status | String | Subtask status. Common values include success, failed, starting, and running. | success |
| errorMessage | String | Error message returned when the subtask fails. | "" |
Request Example
{
"taskId": "cc-th6j3fs58y",
"execId": 46958
}
Successful Invocation Example
{
"success": true,
"requestId": "Sz5u6XOJ-hnoiwAAnjnnw3PJdiog1HEN",
"data": {
"taskId": "cc-th6j3fs58y",
"execId": 46958,
"status": "success"
}
}