v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-143021,9861.6 MB

Stops a training job. To stop a job, SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts, so the results of the training is not lost.

When it receives a StopTrainingJob request, SageMaker changes the status of the job to Stopping. After SageMaker stops the job, it sets the status to Stopped.

post/#X-Amz-Target=SageMaker.StopTrainingJob

Headers

X-Amz-Target'SageMaker.StopTrainingJob' required

Request body

TrainingJobNamestring required

The name of the training job to stop.

Response

Success