Description
Rolls back all failed subtask nodes.
Call instructions
Interface constraints
The caller must have the TASK_MANAGER permission.
Request path
POST /api/v2/tasks/instances/{taskInstanceId}/rollback
Request parameters
path:
Parameter |
Type |
Required |
Example Value |
Description |
|---|---|---|---|---|
| taskInstanceId | Long | Yes | 1000 | The ID of the target task instance. |
Return result
Parameter |
Type |
Description |
|---|---|---|
| successful | Boolean | Indicates whether the request is successful. |
| timestamp | Datetime | The timestamp when the server completes the request. |
| duration | Integer | The time taken by the server to process the request (in milliseconds). |
| status | Integer | The HTTP status code conforming to the HTTP status specification. |
| traceId | String | The Trace ID of the request, used for troubleshooting. |
| server | String | The address of the application service that responds to the request. |
Examples
Request example
POST /api/v2/tasks/instances/1000/rollback
Return example
{
"duration": 55,
"server": "a83ad33525",
"status": 200,
"successful": true,
"timestamp": "2021-08-25T15:10:13.176+08:00",
"traceId": "0bc49000675d41af"
}
