Skip to content

Conversation

@Lee-W
Copy link
Member

@Lee-W Lee-W commented Dec 2, 2025

Why

If the port is not set in Airflow UI for SFTPHookAsync, it will not default to port 22, which is inconsistent with SFTPHook. During debugging, I also found out lots of arguments are ignored in SFTPHookAsync

What

Fallback to port 22 if not set and use the arguments passed through SFTPHookAsyn.__init__.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@Lee-W Lee-W force-pushed the sftp-async-hook-port-fallback branch 2 times, most recently from 3ca4be8 to 5c5efd9 Compare December 3, 2025 13:07
@Lee-W Lee-W force-pushed the sftp-async-hook-port-fallback branch from 5c5efd9 to b26fbb0 Compare December 3, 2025 13:08
@Lee-W Lee-W marked this pull request as ready for review December 3, 2025 13:09
@Lee-W Lee-W merged commit 02c4937 into apache:main Dec 4, 2025
83 checks passed
@Lee-W Lee-W deleted the sftp-async-hook-port-fallback branch December 4, 2025 06:31
itayweb pushed a commit to itayweb/airflow that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants