:doc:`SageMaker <../../sagemaker>` / Client / stop_compilation_job

********************
stop_compilation_job
********************



.. py:method:: SageMaker.Client.stop_compilation_job(**kwargs)

  

  Stops a model compilation job.

   

  To stop a job, Amazon SageMaker AI sends the algorithm the SIGTERM signal. This gracefully shuts the job down. If the job hasn't stopped, it sends the SIGKILL signal.

   

  When it receives a ``StopCompilationJob`` request, Amazon SageMaker AI changes the ``CompilationJobStatus`` of the job to ``Stopping``. After Amazon SageMaker stops the job, it sets the ``CompilationJobStatus`` to ``Stopped``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopCompilationJob>`_  


  **Request Syntax**
  ::

    response = client.stop_compilation_job(
        CompilationJobName='string'
    )
    
  :type CompilationJobName: string
  :param CompilationJobName: **[REQUIRED]** 

    The name of the model compilation job to stop.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  