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
The SFTPOperator currently runs in synchronous mode only, blocking
a worker slot for the entire duration of every file transfer.
For large file transfers, this wastes worker resources unnecessarily.
Proposed Solution
Add deferrable=True parameter to SFTPOperator following the same
pattern used in other Airflow providers. When deferrable=True,
the operator will defer execution to a trigger, freeing the worker
slot immediately and allowing the Triggerer to poll for completion.
Implementation Plan
Add SFTPOperatorTrigger class in triggers/sftp.py
Add deferrable param to SFTPOperator.init()
Add defer() call in execute() when deferrable=True
Add execute_complete() callback method
Add unit tests
Related
Similar to deferrable mode already implemented in SFTPSensor.
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
Fresh branch off current main (rebase, not merge). Scope is the four-file feature only — operator, trigger, and their unit tests. hooks/sftp.py and the existing sync path are unchanged.
Not asking to be assigned; happy to iterate on review.
Activity
boring-cyborg commentedon Apr 19, 2026
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
tannnmayy commentedon Aug 13, 2026
Opened a draft PR for this: #71557
Fresh branch off current
main(rebase, not merge). Scope is the four-file feature only — operator, trigger, and their unit tests.hooks/sftp.pyand the existing sync path are unchanged.Not asking to be assigned; happy to iterate on review.
Add deferrable mode to SFTPOperator
Add deferrable mode to SFTPOperator (apache#72336)