amoghrajesh commented on code in PR #76413:
URL: https://github.com/apache/airflow/pull/76413#discussion_r4508687043


##########
providers/amazon/src/airflow/providers/amazon/aws/hooks/sagemaker.py:
##########
@@ -581,6 +581,23 @@ def stop_training_job(self, training_job_name: str) -> 
None:
                 return
             raise
 
+    def stop_processing_job(self, processing_job_name: str) -> None:
+        """
+        Stop a running SageMaker processing job.
+
+        .. seealso::
+            - :external+boto3:py:meth:`SageMaker.Client.stop_processing_job`
+
+        :param processing_job_name: name of the processing job to stop.
+        """
+        try:
+            
self.conn.stop_processing_job(ProcessingJobName=processing_job_name)

Review Comment:
   Extracted `_stop_job` & both public methods delegate to it. Log output is 
unchanged, so the existing training caplog assertion still matches.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to