Functional Description
Query the result of a task by task ID
Request
plain
GET /task/info
Content-Type: application/x-www-form-urlencoded
Param
Field | Type | Description | Required |
---|---|---|---|
taskId | string | Task id | Yes |
Response
response body
First determine whether the code is 0, indicating whether the request is successful
Then judge the status of executeState,
If wait, continue polling.
If progressing, you can get the value of progress.
If finish, determine the value of the task resultState.
If resultState is 0, it means success, get url
If resultState is other cases, indicating failure and getting error information
json
{
"code": 0,
"msg": "success",
"data": {
"taskId": "ea496f25ee544f7aba9e9edc089424ad",
"progress": 100,
"executeState": "FINISH",
"resultState": 0,
"errorMsg":"",
"beatList": [
699894,
29395548
],
"pointList": [
699894,
29395548
]
}
}
Field | Type | Description | Required |
---|---|---|---|
code | int | Status code, 0 is success, all others are failure | Yes |
msg | string | Status information | Yes |
data | object | Returned data body | Yes |
taskId | string | Task id | Yes |
progress | int | Task progress | Yes |
executeState | stirng | Execution Status WAIT WORK FINISH | Yes |
resultState | int | Result Status 0 success Other failures | No |
errorMsg | string | Task failure description | No |
beatList | [ ]long | The detected rhythm point, in microseconds | No |
pointList | [ ]long | The detected beat point, in microseconds | No |