A sensor is a block that continuously evaluates a condition until it’s met or until a period of time has elapsed.
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.