potiuk commented on a change in pull request #7891: [AIRFLOW-5825] 
SageMakerEndpointOperator is not idempotent
URL: https://github.com/apache/airflow/pull/7891#discussion_r399327231
 
 

 ##########
 File path: airflow/providers/amazon/aws/operators/sagemaker_endpoint.py
 ##########
 @@ -66,6 +68,7 @@ class SageMakerEndpointOperator(SageMakerBaseOperator):
         finish within max_ingestion_time seconds. If you set this parameter to 
None it never times out.
     :type max_ingestion_time: int
     :param operation: Whether to create an endpoint or update an endpoint. 
Must be either 'create or 'update'.
+        if self.operation not in ['create', 'update']:
 
 Review comment:
   I think that's here by mistake :)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to