Provider package for Apache Airflow that enables FTP file transfer protocol operations including hooks, operators, and sensors for workflow integration.
84
Build a workflow task that monitors an FTP server for file availability and triggers subsequent processing only when files are present.
Your task is to implement a monitoring system that waits for specific files to appear on an FTP server before proceeding with downstream workflow tasks.
@generates
"""
FTP File Availability Monitor
Provides monitoring capabilities for FTP file/directory presence.
"""
def create_ftp_file_monitor(
ftp_conn_id: str,
path: str,
timeout: int = 3600,
poke_interval: int = 60
):
"""
Create a monitoring task that waits for a file or directory to exist on an FTP server.
Args:
ftp_conn_id: Connection ID for the FTP server
path: Remote path to monitor (supports template variables)
timeout: Maximum time to wait in seconds (default: 3600)
poke_interval: Time between checks in seconds (default: 60)
Returns:
A monitoring task object that can be used in a workflow
"""
pass
def create_secure_ftp_file_monitor(
ftp_conn_id: str,
path: str,
timeout: int = 3600,
poke_interval: int = 60
):
"""
Create a monitoring task for secure FTPS servers.
Args:
ftp_conn_id: Connection ID for the FTPS server
path: Remote path to monitor (supports template variables)
timeout: Maximum time to wait in seconds (default: 3600)
poke_interval: Time between checks in seconds (default: 60)
Returns:
A monitoring task object for secure FTP that can be used in a workflow
"""
passProvides FTP operations and monitoring capabilities for Apache Airflow workflows.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-apache-airflow-providers-ftpevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10