Snowflake Sensor Async

Runs a sql statement repeatedly until a criteria is met in a Snowflake database. 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. SnowflakeSensorAsync.

snowflake_op_sql_sensor = SnowflakeSensorAsync(
    task_id="snowflake_op_sql_sensor",
    snowflake_conn_id="snowflake_conn",
    sql=SNOWFLAKE_SLACK_SQL,
    poke_interval=POKE_INTERVAL,
    timeout=TASK_TIMEOUT * 60,
)
# https://github.com/astronomer/astronomer-providers/tree/main/astronomer/providers/snowflake/example_dags/example_snowflake_sensor.py