Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

stop_training_job

stop_training_job(**kwargs)

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 .

See also: AWS API Documentation

Request Syntax

response = client.stop_training_job(
    TrainingJobName='string'
)
Parameters
TrainingJobName (string) --

[REQUIRED]

The name of the training job to stop.

Returns
None

Exceptions

  • SageMaker.Client.exceptions.ResourceNotFound