Skip to content

Commit

Permalink
feat: Apply pagination to ECR fetch_repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jul 26, 2024
1 parent b15f9fc commit d496c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ai/backend/manager/container_registry/aws_ecr.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ async def fetch_repositories(
try:
while True:
if next_token:
response = client.describe_repositories(nextToken=next_token)
response = client.describe_repositories(nextToken=next_token, maxResults=30)
else:
response = client.describe_repositories()
response = client.describe_repositories(maxResults=30)

for repo in response["repositories"]:
# TODO: Fix this.
Expand Down

0 comments on commit d496c74

Please sign in to comment.