Skip to content

Conversation

ninjadq
Copy link
Member

@ninjadq ninjadq commented Jun 12, 2025

Purpose of the PR

This PR will fix timeout issue when there are very large number of untagged manifest existed in repository.

Fixes #457

}
if UntagLimit > 0 && len(candidates) >= UntagLimit {
// If the number of candidates is greater than the limit, we stop fetching more manifests.
break
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking here means only a subset of manifest is scanned. It may cause unwanted purge since any currently dangling manifest might get referenced by a tag in the next iteration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a limitation when purge untagged repository

2 participants