Skip to content

Commit

Permalink
gc: allow setting the repositorygc queueitems' availability (PROJQUAY…
Browse files Browse the repository at this point in the history
…-8408) (quay#3551)
  • Loading branch information
kleesc authored Jan 7, 2025
1 parent f0907c8 commit 6c10313
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion data/model/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,9 @@ def set_repository_state(repo, state):
repo.save()


def mark_repository_for_deletion(namespace_name, repository_name, repository_gc_queue):
def mark_repository_for_deletion(
namespace_name, repository_name, repository_gc_queue, available_after=0
):
"""
Marks a repository for future deletion in the background.
Expand Down Expand Up @@ -695,6 +697,7 @@ def mark_repository_for_deletion(namespace_name, repository_name, repository_gc_
"original_name": repository_name,
}
),
available_after=available_after,
)
marker.save()

Expand Down

0 comments on commit 6c10313

Please sign in to comment.