kandharvishnu opened a new issue, #41472:
URL: https://github.com/apache/airflow/issues/41472

   ### Description
   
   Currently, the operator fails if a file is not found on the SFTP server. To 
make this behavior more flexible, we could introduce a new parameter, 
`fail_on_sftp_file_not_exist`, allowing users to customize the operator's 
response in such scenarios. By setting this parameter, users can choose whether 
the operator should raise an error when a file is missing or simply log a 
message and continue processing.
   
   ### Use case/motivation
   
   This enhancement would give users greater control over the operator's 
behaviour, particularly in environments where missing files are expected or 
where continued processing is preferred.
   
   ### Related issues
   
   A similar [issue](https://github.com/apache/airflow/issues/40576) has been 
reported for the `SFTPToS3Operator`.
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to