You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2021/11/04 15:08:31 UTC

[libcloud] branch trunk updated (583cbca -> 0e729e9)

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git.


    from 583cbca  Add changelog entry for #1557.
     add 6836025  Make customizing the retry behavior easier
     add 7e7ce71  Separate out some retrying logic
     add 997b177  Add parameter to turn off infinite retry on rate limiting
     add e86b374  Update retry function so we also respect "timeout" argument passed to the function and we don't try to retry on RateLimitReached errors if timeout has been exhausted.
     add d2138f9  Add changelog entries.
     add bf147dc  Update the function logic so we don't use open "while True" statement, also make retry-after a float so we can use lower value than 1 second in the tests to speed them up.
     add 8940a66  Add a test case for successful retry scenario where we successfuly retry on second attempt which we previously didn't have.
     add bfda9fc  Fix lint violations.
     add 5c59095  Merge branch 'trunk' into understand-ai-intelligent-retry
     add 2547500  For backward compatibility reasons implement new RetryForeverOnRateLimitError retry class which can be used in case user wants to switch to old behavior with the retry code where we try to retry for indefinitely on RateLimitReached API errors / responses.
     add af7f4c4  Simplify a bunch of tests to reduce two unncessary levels of nesting which made code much harder to read.
     add 0e729e9  Add test case for additional scenario we were missing.

No new revisions were added by this update.

Summary of changes:
 CHANGES.rst                              |  13 ++
 docs/upgrade_notes.rst                   |  21 +++
 libcloud/common/base.py                  |  10 +-
 libcloud/common/exceptions.py            |   2 +-
 libcloud/test/common/test_retry_limit.py |   2 +-
 libcloud/test/test_connection.py         | 176 ++++++++++++++++++++-----
 libcloud/utils/misc.py                   | 104 ++-------------
 libcloud/utils/retry.py                  | 218 +++++++++++++++++++++++++++++++
 8 files changed, 417 insertions(+), 129 deletions(-)
 create mode 100644 libcloud/utils/retry.py