S3KeySensorBlobOperatorTransformer¶
-
class
ditto.transformers.s3.S3KeySensorBlobOperatorTransformer(target_dag, defaults)[source]¶ Bases:
ditto.api.OperatorTransformerTransforms a
S3KeySensorinto either aWasbWildcardPrefixSensoror aWasbPrefixSensor- Parameters
target_dag¶ (
DAG) – the target to which the transformed operators must be addeddefaults¶ (
TransformerDefaults) – the default configuration for this transformer
-
transform(src_operator, parent_fragment, upstream_fragments)[source]¶ You need to add the
wasb_conn_idto the source operator (or preferably DAG) for this to work. Thecontainer_nameandprefixfor the blob based sensors are coped from thebucket_nameandbucket_keyof the s3 sensor, so make sure they are templatized for changing between s3:// and wasb:// paths, etc. using config- Return type