buildgrid.server.cleanup.cleanup module

class buildgrid.server.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)

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

publish_total_size_metric(total_size: int) None