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

SDK-383: Add Retries to all Get requests in case of 500 Response #292

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

chattarajoy
Copy link
Member

We often see cases when Airflow Jobs fail because the polling API returns a 500 Response. This change adds retries to all get calls when a 500 Response is returned as a result of heavy load on Qubole's Webapp.

@chattarajoy chattarajoy requested review from akaranjkar-qu, sunasra and a team December 6, 2019 17:23
def get_raw(self, path, params=None):
return self._api_call_raw("GET", path, params=params)

@retry((RetryWithDelay, requests.Timeout), tries=6, delay=30, backoff=2)
@retry((RetryWithDelay, requests.Timeout, ServerError), tries=6, delay=30, backoff=2)
Copy link

Choose a reason for hiding this comment

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

This will apply to all network call? @chattarajoy

Copy link
Member Author

Choose a reason for hiding this comment

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

only get requests. Retrying put/post/delete requests might case issues, hence added these to get requests only.

@chattarajoy chattarajoy changed the title SDK-XXX: Add Retries to all Get requests in case of 500 Response SDK-383: Add Retries to all Get requests in case of 500 Response Dec 9, 2019
@chattarajoy chattarajoy merged commit 99544a9 into qubole:unreleased Dec 9, 2019
@chattarajoy chattarajoy deleted the get_retries branch December 9, 2019 12:28
sunasra pushed a commit that referenced this pull request Dec 11, 2019
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.

2 participants