Functional Description
If you do not want to actively poll, but want to get progress through interface callback
The fixed callback path is /job/compile/progress. For example, if the callback prefix provided is http://demo.com/prefix/, the actual callback address is http://demo.com/prefix/job/compile/progress
Request
plain
POST /job/compile/progress
Content-Type: application/json
Response
response body
json
{
"uuid": "2025042501",
"type": 1,
"data": {
"progress": 64
}
}
Field | Type | Description | Required |
---|---|---|---|
uuid | string | Corresponding taskId | Yes |
type | int | Corresponding task type, synthetic task is 1 | Yes |
data | object | Returned data body | Yes |
progress | Task progress | Yes |
The response code and response body are not considered. If a connection error occurs, the server will wait for 5 seconds and try again. The server can try up to 3 times, with a timeout of 10 seconds each time.