Cancel a training job
curl --request PATCH \
--url https://{tenant}-api.mathfi.ai/api/v1/training/{trainingJobKey}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenant}-api.mathfi.ai/api/v1/training/{trainingJobKey}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.patch(url, headers=headers)
print(response.text){
"status": "CANCELLED"
}Training
Cancel a training job
Cancel a training job given its key
PATCH
/
api
/
v1
/
training
/
{trainingJobKey}
/
cancel
Cancel a training job
curl --request PATCH \
--url https://{tenant}-api.mathfi.ai/api/v1/training/{trainingJobKey}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenant}-api.mathfi.ai/api/v1/training/{trainingJobKey}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.patch(url, headers=headers)
print(response.text){
"status": "CANCELLED"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Training job cancelling successful response
Status of training:
PENDING- The training job has been created and is pending executionRUNNING- The training job is currently executing and progressingCOMPLETED- The training job has completed execution successfully, reaching the target performance. A model has been generated.TIMED_OUT- The training job could not reach the target performance in the configuredCANCELLED- The training job has been cancelled by the userNOT_COMPLETED- The training job has stalled without making progress in a specified timeframeFAILED- The training job has failed due to an error
Available options:
PENDING, RUNNING, COMPLETED, TIMED_OUT, CANCELLED, FAILED, NOT_COMPLETED Show child attributes
Show child attributes
How long to wait before asking again. Absent once the job has finished — there is nothing further to wait for, and a client that honours this stops polling.