Skip to content

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

Merged
chattarajoy merged 1 commit intoqubole:unreleasedfrom
chattarajoy:get_retries
Dec 9, 2019
Merged

SDK-383: Add Retries to all Get requests in case of 500 Response#292
chattarajoy merged 1 commit intoqubole:unreleasedfrom
chattarajoy:get_retries

Conversation

@chattarajoy
Copy link
Copy Markdown
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 a team, akaranjkar-qu and sunasra December 6, 2019 17:23
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
Copy Markdown

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
Copy Markdown
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