SFTPSensorAsync

Astronomer Providers

Polls an SFTP server continuously until a file_pattern is matched at a defined path

Access Instructions

Install the Astronomer Providers provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

pathRequiredThe path on the SFTP server to search for a file matching the file pattern. Authentication method used in the SFTP connection must have access to this path
file_patternPattern to be used for matching against the list of files at the path above. Uses the fnmatch module from std library to perform the matching.
timeoutHow long, in seconds, the sensor waits for successful before timing out
newer_thanDateTime for which the file or file path should be newer than, comparison is inclusive

Documentation

Polls an SFTP server continuously until a file_pattern is matched at a defined path

Was this page helpful?