airflow.contrib.sensors.wasb_sensor

Module Contents

class airflow.contrib.sensors.wasb_sensor.WasbBlobSensor(container_name, blob_name, wasb_conn_id='wasb_default', check_options=None, *args, **kwargs)[source]

Bases:airflow.sensors.base_sensor_operator.BaseSensorOperator

Waits for a blob to arrive on Azure Blob Storage.

Parameters
  • container_name (str) – Name of the container.

  • blob_name (str) – Name of the blob.

  • wasb_conn_id (str) – Reference to the wasb connection.

  • check_options (dict) – Optional keyword arguments that WasbHook.check_for_blob() takes.

template_fields = ['container_name', 'blob_name'][source]
poke(self, context)[source]
class airflow.contrib.sensors.wasb_sensor.WasbPrefixSensor(container_name, prefix, wasb_conn_id='wasb_default', check_options=None, *args, **kwargs)[source]

Bases:airflow.sensors.base_sensor_operator.BaseSensorOperator

Waits for blobs matching a prefix to arrive on Azure Blob Storage.

Parameters
  • container_name (str) – Name of the container.

  • prefix (str) – Prefix of the blob.

  • wasb_conn_id (str) – Reference to the wasb connection.

  • check_options (dict) – Optional keyword arguments that WasbHook.check_for_prefix() takes.

template_fields = ['container_name', 'prefix'][source]
poke(self, context)[source]