vandonr-amz commented on code in PR #29001:
URL: https://github.com/apache/airflow/pull/29001#discussion_r1073838452
##########
airflow/providers/amazon/aws/sensors/eks.py:
##########
@@ -98,13 +99,15 @@ def __init__(
self.region = region
super().__init__(**kwargs)
- def poke(self, context: Context):
- eks_hook = EksHook(
+ @cached_property
+ def hook(self):
+ return EksHook(
aws_conn_id=self.aws_conn_id,
region_name=self.region,
)
Review Comment:
looking a bit closer at it, I think there would be more use cases for a base
sensor here, but I'll do that in a different PR.
--
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]