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, 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 CAS cleanup service.

start(timeout: float | None = None) None

Start cleanup service

stop(*args: Any, **kwargs: Any) None

Stops the cleanup service