airflow.providers.databricks.sensors.databricks¶
Attributes¶
Classes¶
DatabricksSQLStatementsSensor. |
Module Contents¶
- class airflow.providers.databricks.sensors.databricks.DatabricksSQLStatementsSensor(warehouse_id, *, statement=None, statement_id=None, catalog=None, schema=None, parameters=None, databricks_conn_id='databricks_default', polling_period_seconds=30, databricks_retry_limit=3, databricks_retry_delay=1, databricks_retry_args=None, do_xcom_push=True, wait_for_termination=True, timeout=3600, deferrable=conf.getboolean('operators', 'default_deferrable', fallback=False), **kwargs)[source]¶
Bases:
airflow.providers.databricks.utils.mixins.DatabricksSQLStatementsMixin,airflow.providers.common.compat.sdk.BaseSensorOperatorDatabricksSQLStatementsSensor.
- template_fields: collections.abc.Sequence[str] = ('databricks_conn_id', 'statement', 'statement_id')[source]¶
- template_ext: collections.abc.Sequence[str] = ('.json-tpl',)[source]¶
- execute(context)[source]¶
Derive when creating an operator.
The main method to execute the task. Context is the same dictionary used as when rendering jinja templates.
Refer to get_template_context for more context.
- poke(context)[source]¶
Handle non-deferrable Sensor execution.
- Parameters:
context (airflow.providers.common.compat.sdk.Context) – (Context)
- Returns:
(bool)