You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Concurrent SFTP directory transfers drop the parent hook's connection overrides #73585
Since #73419 the workers inherit no_host_key_check, but every other constructor override on the parent hook is still discarded — remote_host, port, username, password, key_file, proxy settings, timeouts — so the workers fall back to whatever the connection defines. With an explicit remote_host, for example, the directory is listed on that host but the workers transfer against the connection's original host.
Expected: worker hooks are built with the parent's effective connection settings.
Regression test: patch worker-hook construction, configure a parent SFTPHook with a remote_host (and port/username) different from the connection, run a concurrent transfer, and assert every worker hook receives the parent's effective values.
Pre-existing; surfaced during review of #73419 and deliberately left out of that PR's scope.
Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting
I'd like to work on this. Planning to pass the parent hook's resolved attributes (not just constructor args) into the worker hook constructor calls in both store_directory_concurrently() and retrieve_directory_concurrently(), so overrides like remote_host/port/username/password/key_file/proxy/timeouts propagate consistently, same as no_host_key_check does now. Will add the regression test that patches worker-hook construction and asserts the effective values are passed through. Assigning myself — let me know if there's a preferred approach.
Activity
abhishekmauryaKsolves commentedon Sep 24, 2026
I'd like to work on this. Planning to pass the parent hook's resolved attributes (not just constructor args) into the worker hook constructor calls in both store_directory_concurrently() and retrieve_directory_concurrently(), so overrides like remote_host/port/username/password/key_file/proxy/timeouts propagate consistently, same as no_host_key_check does now. Will add the regression test that patches worker-hook construction and asserts the effective values are passed through. Assigning myself — let me know if there's a preferred approach.
fix(sftp): propagate parent hook connection overrides to concurrent-t…
Fix concurrent SFTP directory transfers dropping parent hook's connec…