The CleanAcrImagesCommand command makes use of IAsyncEnumerable but it does so in a blocking manner. This causes poor performance in the build job that consumes that command. In one scenario it's taking 23 minutes to run when the previous implementation (prior to https://github.com/dotnet/docker-tools/pull/1272) was taking just 3 minutes.
The
CleanAcrImagesCommand
command makes use ofIAsyncEnumerable
but it does so in a blocking manner. This causes poor performance in the build job that consumes that command. In one scenario it's taking 23 minutes to run when the previous implementation (prior to https://github.com/dotnet/docker-tools/pull/1272) was taking just 3 minutes.