Retry Task
Retry a task after it has stopped due to an abnormality.
POST
https://api.alayanew.com/api/serverless-train/v1/task/{id}/retry
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Path Parameters
id:StringRequired
Task ID.
Response
状态码:application/json
200
code:Int
code is a common return value format indicating the execution result of the operation.
0
-1
0 is the success flag, indicating the operation completed successfully.
msg:StringRequired
Returns error information when the code value is -1.
cURL
Python
JavaScript
Go
Java
curl -X POST 'https://api.alayanew.com/api/serverless-train/v1/task/6ef0ef3c-252a-44c8-aba3-a87e23615c76/retry'
-H 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK'
200
400
401
403
404
500
{
"code": 0
}