diff options
author | Kevin Breit <kevin.breit@kevinbreit.net> | 2019-08-27 15:32:09 -0500 |
---|---|---|
committer | Nathaniel Case <ncase@redhat.com> | 2019-08-27 16:32:09 -0400 |
commit | 489156378c8e97374a75a544c7c9c2c0dd8146d1 (patch) | |
tree | d011a48dc843210bfbdaa019f462c412f49248b7 /changelogs | |
parent | 5ee81338fcf7adbc1a8eda26dd8105a07825cb08 (diff) | |
download | ansible-489156378c8e97374a75a544c7c9c2c0dd8146d1.tar.gz |
Meraki - Enable API call rate limiting for requests (#54827)
* Initial commit for rate limiting
- Detects if error code is 429
- Pauses for random time between .5 and 5 seconds before retrying
- If it fails 10 times, give up and tell user
* Redo structure of request() to support rate limiting
* Hold down timer is now a sliding scale
- 3 * number of retries
- Fails after the 30 second wait
* Whitespace fixes
* Redo implementation using decorators
- Errors aren't tested but code works for regular calls
* Unit tests work for error handling
* Add integration tests for successful retries
* Add condition for 502 errors and retry
* Move _error_report out of the class
* PEP8 fixes
* Add changelog entry
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/fragments/meraki-rate-limit.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/fragments/meraki-rate-limit.yml b/changelogs/fragments/meraki-rate-limit.yml new file mode 100644 index 0000000000..4905e9c426 --- /dev/null +++ b/changelogs/fragments/meraki-rate-limit.yml @@ -0,0 +1,2 @@ +minor_changes: + - meraki_* - Modules now respect 429 (rate limit) and 500/502 errors with a graceful backoff. |