Skip to content

Commit

Permalink
Updated default backoff from 2 seconds to 1.1s.
Browse files Browse the repository at this point in the history
This will be about a total of 48 seconds in 10 tries. This is
configurable.
  • Loading branch information
linuxdynasty committed Aug 24, 2016
1 parent 02ffc76 commit 1acdd4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/module_utils/cloud.py
Expand Up @@ -67,7 +67,7 @@ def found(response_code):
pass

@classmethod
def backoff(cls, tries=10, delay=3, backoff=2):
def backoff(cls, tries=10, delay=3, backoff=1.1):
""" Retry calling the Cloud decorated function using an exponential backoff.
Kwargs:
tries (int): Number of times to try (not retry) before giving up
Expand Down

0 comments on commit 1acdd4e

Please sign in to comment.