AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to StopTrainingJobAsync.

Namespace: Amazon.SageMaker
Assembly: AWSSDK.SageMaker.dll
Version: 3.x.y.z

Syntax

C#
public virtual StopTrainingJobResponse StopTrainingJob(
         StopTrainingJobRequest request
)

Parameters

request
Type: Amazon.SageMaker.Model.StopTrainingJobRequest

Container for the necessary parameters to execute the StopTrainingJob service method.

Return Value


The response from the StopTrainingJob service method, as returned by SageMaker.

Exceptions

ExceptionCondition
ResourceNotFoundException Resource being access is not found.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also