Do not query saved content in QueryExistingContents stage
Plugins may have multiple stages that query content. In
pulp_cookbook there is a custom stage that queries content and artifact from
the previous repo version. In immediate mode, the stages are:
... QueryExistingRepoContentAndArtifacts(new_version=new_version), ArtifactDownloader(), ArtifactSaver(), UpdateContentWithDownloadResult(), # add digest to content QueryExistingContents(), # share content with known digest ...
After downloading missing artifacts (and thus, obtaining a digest), the
QueryExistingContents stage is used to identify content that already exists
outside of the repo. In this scenario, QueryExistingContents may encounter
already saved content which it should not query again for performance reasons.
Do as the current documentation states ('This stage inspects any "unsaved"
Content unit objects and searches for existing saved Content units inside
Pulp with the same unit key') and do not query for content that is already
Please register to edit this issue