Skip to content

Commit

Permalink
quotas - sleep 0.3s between list service quotas
Browse files Browse the repository at this point in the history
  • Loading branch information
kentnsw committed Oct 6, 2022
1 parent 4fd151b commit 7246ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c7n/resources/quotas.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def _get_quotas(client, s, attr):
quotas.update(rquotas)
self.log.debug(f"- {s['ServiceCode']} has {len(response['Quotas'])} quotas")
# NOTE fix TooManyRequestsException when calling the ListServiceQuotas
# NOTE sleep before any break
sleep(0.2)
# NOTE sleep before any break; default quota 10rps
sleep(0.3)
if token is None:
break
# ssm, ec2, kms have bad behaviors.
Expand Down

0 comments on commit 7246ee0

Please sign in to comment.