GoogleCloudPlatform / gcr-cleaner

Delete untagged image refs in Google Container Registry or Artifact Registry
Apache License 2.0
805 stars 112 forks source link

Add concurrency options and handle retries #125

Closed sethvargo closed 1 year ago

sethvargo commented 1 year ago

This adds new functionality for controlling the overall concurrency and bumps the default concurrency to a more sane value (1 -> 20). This also fixes an error where some manifests would fail to delete because they reference another image later. This fixes the error by introducing a retry mechanism for manifests that fail to delete with a dangling parent error (3 attempts).

Fixes https://github.com/GoogleCloudPlatform/gcr-cleaner/issues/118 Closes https://github.com/GoogleCloudPlatform/gcr-cleaner/pull/124