Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected async Task<IEnumerable<EolDigestData>> GetAllImageDigestsFromRegistryA
.Where(repo => repoNameFilter is null || repoNameFilter(repo));

ConcurrentBag<(string Digest, string? Tag)> digests = [];
await foreach (string repositoryName in repositoryNames)
await Parallel.ForEachAsync(repositoryNames, async (repositoryName, outerCT) =>
{
IAcrContentClient contentClient =
_acrContentClientFactory.Create(
Expand All @@ -83,7 +83,7 @@ protected async Task<IEnumerable<EolDigestData>> GetAllImageDigestsFromRegistryA

ContainerRepository repo = acrClient.GetRepository(repositoryName);
IAsyncEnumerable<ArtifactManifestProperties> manifests = repo.GetAllManifestPropertiesAsync();
await foreach (ArtifactManifestProperties manifestProps in manifests)
await Parallel.ForEachAsync(manifests, outerCT, async (manifestProps, innerCT) =>
{
ManifestQueryResult manifestResult = await contentClient.GetManifestAsync(manifestProps.Digest);

Expand All @@ -99,8 +99,8 @@ protected async Task<IEnumerable<EolDigestData>> GetAllImageDigestsFromRegistryA
digest: manifestProps.Digest);
digests.Add((imageName, GetLongestTag(manifestProps.Tags)));
}
}
}
});
});

return digests
.Select(val => new EolDigestData(val.Digest) { Tag = val.Tag });
Expand Down
Loading