Stop Task

Stop a running training job.This will terminate the SageMaker training job if it's currently running.Jobs that have already completed or failed cannot be stopped.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Stop a running training, tuning, or inference job. Pass the task_id returned when the job was submitted to cancel it immediately.
Jobs that have already reached a "completed" or "failed" state cannot be stopped. Use the Check Job Status endpoint to verify the current state of a job before attempting to stop it.

Authentication: Include your API key in the X-API-KEY request header.

Query parameter description:

ParameterDescription
task_idThe job identifier returned by the Training, Tuning, or Inference endpoint. Must refer to a job that is currently in "pending" or "running" state. Jobs that have already completed or failed cannot be stopped.

Query Params
string
required

The training job name to stop

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json