
Setup
Example
You can add sensors to a pipeline the same way you add other types of blocks.pipeline_uuid
to the actual pipeline UUID you want this sensor to keep
checking whether or not it’s finished running successfully.
The block_uuid
positional argument is optional. If you add a value for the block_uuid
positional argument, then the sensor will check the status of the block in that pipeline.
Only when that specific block is finished running successfully, then the sensor will be complete.
The ‘hours’ positional argument is optional. If you add a value for the ‘hours’ positional argument,
then the sensor will check the status of the pipeline for that many hours in past from execution_date.
The default value is 24 hours.
Sensors can also have upstream block dependencies. The output of the upstream blocks will be passed
into the sensor in the args
parameter like in other Mage block types.
Currently, the sensor makes a check every 60 seconds.
Templates
When adding a sensor block, here are the available templates to choose from:- Google BigQuery
- MySQL
- PostgreSQL
- Amazon Redshift
- Amazon S3
- Snowflake