MRLab12 commented on code in PR #40377:
URL: https://github.com/apache/airflow/pull/40377#discussion_r1650216416
##########
airflow/providers/ssh/operators/ssh.py:
##########
@@ -198,3 +198,9 @@ def tunnel(self) -> None:
"""Get ssh tunnel."""
ssh_client = self.hook.get_conn() # type: ignore[union-attr]
ssh_client.get_transport()
+
+ def on_kill(self) -> None:
+ """Close the ssh client session."""
+ ssh_client = self.hook.get_conn()
Review Comment:
Yeah, I see. I added a `cached_property` decorator to `get_conn` based on
the cached propert `host_proxy` in `SSHHook`. From what I can see, this
shouldn't not affect existing code.
--
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]