SnowflakeSensorAsync
Astronomer ProvidersRuns a sql statement repeatedly until a criteria is met. It will keep trying until success or failure criteria are met, or if the first cell returned from the query is not in (0, ‘0’, ‘’, None). Optional success and failure callables are called with the first cell returned from the query as the argument. If success callable is defined the sensor will keep retrying until the criteria is met. If failure callable is defined and the criteria is met the sensor will raise AirflowException. Failure criteria is evaluated before success criteria. A fail_on_empty boolean can also be passed to the sensor in which case it will fail if no rows have been returned.
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
Documentation
Runs a sql statement repeatedly until a criteria is met. It will keep trying until success or failure criteria are met, or if the first cell returned from the query is not in (0, ‘0’, ‘’, None). Optional success and failure callables are called with the first cell returned from the query as the argument. If success callable is defined the sensor will keep retrying until the criteria is met. If failure callable is defined and the criteria is met the sensor will raise AirflowException. Failure criteria is evaluated before success criteria. A fail_on_empty boolean can also be passed to the sensor in which case it will fail if no rows have been returned.