buildgrid.server.cleanup.cleanup module

class buildgrid.server.cleanup.cleanup.CASCleanUp(dry_run: bool, sleep_interval: int, cleanup_configs: list[buildgrid.server.app.settings.config.CleanupConfig], 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, high_watermark: int, low_watermark: int) None