buildgrid.cleanup.cleanup module

class buildgrid.cleanup.cleanup.CASCleanUp(dry_run, high_watermark, low_watermark, sleep_interval, batch_size, only_if_unused_for, storages, indexes, monitor, mon_endpoint_type=None, mon_endpoint_location=None, mon_serialisation_format=None, mon_metric_prefix=None)

Bases: object

Creates a LRU CAS cleanup service.

start(*, on_server_start_cb=None)

Start cleanup service

stop()

Stops the cleanup service