buildgrid.cleanup.cleanup module

class buildgrid.cleanup.cleanup.CASCleanUp(dry_run: bool, high_watermark: int, low_watermark: int, sleep_interval: int, batch_size: int, only_if_unused_for: timedelta, storages: Dict[str, StorageABC], indexes: Dict[str, IndexABC], monitor: bool, mon_endpoint_type: MonitoringOutputType | None = None, mon_endpoint_location: str | None = None, mon_serialisation_format: MonitoringOutputFormat | None = None, mon_metric_prefix: str | None = None)

Bases: object

Creates a LRU CAS cleanup service.

start() None

Start cleanup service

stop() None

Stops the cleanup service