ferruzzi commented on code in PR #42423:
URL: https://github.com/apache/airflow/pull/42423#discussion_r1772067521


##########
airflow/providers/amazon/aws/hooks/sagemaker.py:
##########
@@ -155,6 +155,7 @@ class SageMakerHook(AwsBaseHook):
     endpoint_non_terminal_states = {"Creating", "Updating", "SystemUpdating", 
"RollingBack", "Deleting"}
     pipeline_non_terminal_states = {"Executing", "Stopping"}
     failed_states = {"Failed"}
+    training_failed_states = {*failed_states, "Stopped"}

Review Comment:
   Sagemaker has so many endpoints, and more popping up so often that I am not 
willing to guarantee that none of them do or will ever use "Stopped" as a 
successful end state, so I am only adding it to the Training failed states.



-- 
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