1
0
mirror of https://github.com/quay/quay.git synced 2025-07-31 18:44:32 +03:00

Change repository deletion to occur in the background

Fixes https://issues.redhat.com/browse/PROJQUAY-124
This commit is contained in:
Joseph Schorr
2019-12-22 15:42:19 +02:00
parent 9b3841e3fd
commit 6db1910a97
23 changed files with 228 additions and 34 deletions

View File

@ -2102,7 +2102,7 @@ class TestListRepos(ApiTestCase):
for repo in list(
RepositoryTable.select().where(RepositoryTable.namespace_user == public_user)
):
model.gc.purge_repository(public_user.username, repo.name)
model.gc.purge_repository(repo, force=True)
# Add public repos until we have enough for a few pages.
required = set()