Skip to content

Commit

Permalink
c7n - reduce the jitter of backoff_delays
Browse files Browse the repository at this point in the history
  • Loading branch information
kentnsw committed Mar 19, 2022
1 parent a6b54d2 commit 6dbb114
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 6dbb114

Please sign in to comment.