ferruzzi commented on code in PR #29001:
URL: https://github.com/apache/airflow/pull/29001#discussion_r1073947810
##########
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:
Tack onto the "Some Day" list, converting as many hooks as possible to thin
hooks, maybe with a Protocol class for IDE type hinting and completion. I
didn't like the EcsProtocol and BatchProtocol classes at first, but they grew
on me.
Anyway, we should maybe get a list of "easy but tedious suggestions" like
this for new contributors to flip through, but we;'re getting way off track
here :stuck_out_tongue:
--
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]