Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry Cosmos requests after delay when they return 429 #1205

Merged
merged 3 commits into from
Jun 26, 2019

Conversation

lightningrob
Copy link
Contributor

Refactor Cosmos logic into separate class

Refactor Cosmos logic into separate class
@lightningrob lightningrob requested review from ankagrawal and zzmao June 22, 2019 00:22
@codecov-io
Copy link

codecov-io commented Jun 22, 2019

Codecov Report

Merging #1205 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1205   +/-   ##
=========================================
  Coverage     83.62%   83.62%           
  Complexity       57       57           
=========================================
  Files             6        6           
  Lines           348      348           
  Branches         38       38           
=========================================
  Hits            291      291           
  Misses           45       45           
  Partials         12       12

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de10789...5c0ed62. Read the comment docs.

Copy link
Contributor

@zzmao zzmao left a comment

Choose a reason for hiding this comment

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

Some minor comments.

@lightningrob
Copy link
Contributor Author

I added the retry logic for queries as well, since the logs showed the 429 errors being thrown for them.

Copy link
Collaborator

@ankagrawal ankagrawal left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@zzmao zzmao left a comment

Choose a reason for hiding this comment

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

LGTM.

@zzmao zzmao merged commit 84bf11c into linkedin:master Jun 26, 2019
@lightningrob lightningrob deleted the cosmos-throttling branch January 15, 2020 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants