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


##########
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:
   I wonder if it makes sense to put the cached hook in a parent BaseEksSensor 
that these inherit?   Likely overkill.....



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