Skip to content

gitserver: List purgeable repos from the database

Administrator requested to merge rs/iterate-gitserverrepos into main

Created by: ryanslade

We can now use the gitserver_repos table to list repos that can be purged.

Add IteratePurgeableRepos to the GitserverReposStore Use it to gather purgeable repos in the purge worker Remove ListEnabledNames as it is no longer needed

Future work

Enable the purge worker on cloud and ensure it only removes repos deleted after some grace period. Rate limit the purge worker Add a dashboard Add a UI to manually trigger a purge

Test plan

DB layer tested carefully. Worker layer simply calls results from DB.

Merge request reports

Loading