potix2 commented on a change in pull request #11531: URL: https://github.com/apache/airflow/pull/11531#discussion_r508883308
########## File path: airflow/providers/amazon/aws/operators/sagemaker_base.py ########## @@ -97,3 +97,8 @@ def preprocess_config(self): def execute(self, context): raise NotImplementedError('Please implement execute() in sub class!') + + @cached_property + def hook(self): Review comment: Me,too. I would like to rewrite all get_hook() to this way but I think it's out of scope this work, so I keep the original form. ---------------------------------------------------------------- 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: us...@infra.apache.org