AthenaSensor

Amazon

Asks for the state of the Query until it reaches a failure state or success state. If the query fails, the task will fail.

View on GitHub

Last Updated: May. 7, 2021

Access Instructions

Install the Amazon provider package into your Airflow environment.

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

Parameters

query_execution_idRequiredstrquery_execution_id to check the state of
max_retriesintNumber of times to poll for query state before returning the current state, defaults to None
aws_conn_idstraws connection to use, defaults to ‘aws_default’
sleep_timeintTime in seconds to wait between two consecutive call to check query status on athena, defaults to 10

Documentation

Asks for the state of the Query until it reaches a failure state or success state. If the query fails, the task will fail.

Was this page helpful?