Skip to content

Conversation

@HantingZhang2
Copy link
Contributor

What does this PR do?

Adds option to enable retry so that when a response code 429 is received the api client would retry

Additional Notes

Review checklist

Please check relevant items below:

  • This PR includes all newly recorded cassettes for any modified tests.

  • This PR does not rely on API client schema changes.

    • The CI should be fully passing.
  • Or, this PR relies on API schema changes and this is a Draft PR to include tests for that new functionality.

    • Note: CI shouldn't be run on this Draft PR, as its expected to fail without the corresponding schema changes.

@HantingZhang2 HantingZhang2 requested a review from a team as a code owner August 16, 2023 17:21
@HantingZhang2 HantingZhang2 marked this pull request as draft August 16, 2023 17:22
@HantingZhang2 HantingZhang2 changed the title [API Client] [API Client] Add retry support Aug 18, 2023
@HantingZhang2 HantingZhang2 marked this pull request as ready for review August 18, 2023 17:00
@therve therve changed the title [API Client] Add retry support Add retry support Aug 22, 2023
Copy link
Contributor

@therve therve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@HantingZhang2 HantingZhang2 merged commit 0af80ad into master Aug 23, 2023
@HantingZhang2 HantingZhang2 deleted the hzhang/add-retry-support branch August 23, 2023 16:22
github-actions bot pushed a commit that referenced this pull request Aug 23, 2023
* Base design

* add_test

* adjust test

* handle nil

* Fix tests

* add testing sleep time without actually sleeping

* Add documentation

* change code generator

* pre-commit fixes

* change how configs are made

* pre-commit fixes

* update readme doc

* pre-commit fixes

* adds validation for backoff_base

* pre-commit fixes

* change generator

* pre-commit fixes

* add validation back

* pre-commit fixes

---------

Co-authored-by: Thomas Hervé <thomas.herve@datadoghq.com>
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> 0af80ad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants