Skip to content

Commit

Permalink
Do batches of 50
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielBusta committed Dec 6, 2023
1 parent 0e436d0 commit 3975969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mozilla_linux_pkg_manager/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def define_sleep_time(
async def batch_delete_versions(versions, args):
client = artifactregistry_v1.ArtifactRegistryAsyncClient()
for package in versions:
batches = batched(versions[package], 10000)
batches = batched(versions[package], 50)
for batch in batches:
logging.info(
f"Deleting {format(len(batch), ',')} expired package versions for {package}."
Expand Down

0 comments on commit 3975969

Please sign in to comment.