Skip to content

Commit

Permalink
Merge pull request #34 from newscorp-ghfb/develop
Browse files Browse the repository at this point in the history
c7n - reduce the jitter of backoff_delays
  • Loading branch information
kentnsw authored Mar 19, 2022
2 parents 4a9fdc7 + 6dbb114 commit daa36d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c7n/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def backoff_delays(start, stop, factor=2.0, jitter=False):
cur = start
while cur <= stop:
if jitter:
yield cur - (cur * random.random())
yield cur - (cur * random.random() / 2)
else:
yield cur
cur = cur * factor
Expand Down

0 comments on commit daa36d7

Please sign in to comment.