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


##########
airflow/providers/amazon/aws/sensors/glue.py:
##########
@@ -61,10 +62,13 @@ def __init__(
         self.errored_states: list[str] = ["FAILED", "STOPPED", "TIMEOUT"]
         self.next_log_token: str | None = None
 
+    @cached_property
+    def hook(self):
+        return GlueJobHook(aws_conn_id=self.aws_conn_id)

Review Comment:
   BTW , it is not related to this PR, but we have a 3 different hooks which is 
wraps around Glue.Client 🤦 
   - airflow.providers.amazon.aws.hooks.glue.GlueJobHook
   - airflow.providers.amazon.aws.hooks.glue_catalog.GlueCatalogHook
   - airflow.providers.amazon.aws.hooks.glue_crawler.GlueCrawlerHook



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