airflow.providers.influxdb.sensors.influxdb3¶
Sensor waiting for a SQL query to return a truthy first cell in InfluxDB 3.x.
Classes¶
Wait until an InfluxDB 3.x SQL query returns a truthy first cell. |
Module Contents¶
- class airflow.providers.influxdb.sensors.influxdb3.InfluxDB3Sensor(*, sql, influxdb3_conn_id='influxdb3_default', fail_on_empty=False, deferrable=conf.getboolean('operators', 'default_deferrable', fallback=False), **kwargs)[source]¶
Bases:
airflow.providers.common.compat.sdk.BaseSensorOperatorWait until an InfluxDB 3.x SQL query returns a truthy first cell.
See also
For more information on how to use this sensor, take a look at the guide: InfluxDB3Sensor
- Parameters:
sql (str) – The SQL query to poll.
influxdb3_conn_id (str) – Reference to InfluxDB 3 connection id. Defaults to
influxdb3_default.fail_on_empty (bool) – Fail instead of waiting when the query returns no rows. Defaults to
False.deferrable (bool) – Run polling in the triggerer. Defaults to the
operators.default_deferrableconfiguration (Falseif unset).
- template_fields: collections.abc.Sequence[str] = ('sql', 'influxdb3_conn_id')[source]¶
- template_ext: collections.abc.Sequence[str] = ('.sql',)[source]¶