Sensor terminator
Module with sensor terminator.
SensorTerminator
¶
Bases: object
Sensor Terminator class.
Source code in mkdocs/lakehouse_engine/packages/terminators/sensor_terminator.py
update_sensor_status(sensor_id, control_db_table_name, status=SensorStatus.PROCESSED_NEW_DATA.value, assets=None)
classmethod
¶
Update internal sensor status.
Update the sensor status in the control table, it should be used to tell the
system that the sensor has processed all new data that was previously
identified, hence updating the shifted sensor status.
Usually used to move from SensorStatus.ACQUIRED_NEW_DATA
to
SensorStatus.PROCESSED_NEW_DATA
, but there might be scenarios - still
to identify - where we can update the sensor status from/to different statuses.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sensor_id |
str
|
sensor id. |
required |
control_db_table_name |
str
|
|
required |
status |
str
|
status of the sensor. |
SensorStatus.PROCESSED_NEW_DATA.value
|
assets |
List[str]
|
a list of assets that are considered as available to consume downstream after this sensor has status PROCESSED_NEW_DATA. |
None
|