dp3.core.collector ¶
Core module performing deletion of entities based on specified policy.
GarbageCollectorConfig ¶
Bases: BaseModel
The configuration of the Collector module.
Attributes:
Name | Type | Description |
---|---|---|
collection_rate |
CronExpression
|
The rate at which the collector module runs. Default is 3:00 AM every day. |
GarbageCollector ¶
Collector module manages the lifetimes of entities based on specified policy.
Source code in dp3/core/collector.py
extend_ttl_on_create ¶
Extends the TTL of the entity by the specified timedelta.
Source code in dp3/core/collector.py
collect_weak ¶
Deletes weak entities when their last reference has expired.
Source code in dp3/core/collector.py
collect_ttl ¶
Deletes entities after their TTL lifetime has expired.
Source code in dp3/core/collector.py
extend_plain_ttl ¶
Extends the TTL of the entity by the specified timedelta.
Source code in dp3/core/collector.py
extend_observations_ttl ¶
extend_observations_ttl(eid: AnyEidT, dp: DataPointObservationsBase, extend_by: timedelta) -> list[DataPointTask]
Extends the TTL of the entity by the specified timedelta.
Source code in dp3/core/collector.py
extend_timeseries_ttl ¶
extend_timeseries_ttl(eid: AnyEidT, dp: DataPointTimeseriesBase, extend_by: timedelta) -> list[DataPointTask]
Extends the TTL of the entity by the specified timedelta.