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

TDL-19841 request timeout and backoff implementation #40

Open
wants to merge 6 commits into
base: TDL-19835-Adding-New-Streams-And-Discovery-Mode
Choose a base branch
from

Conversation

jtilala
Copy link

@jtilala jtilala commented Jul 29, 2022

Description of change

  • Added request timeout and backoff in sync

Manual QA steps

Risks

Rollback steps

  • revert this branch

@jtilala jtilala changed the base branch from master to TDL-19835-Adding-New-Streams-And-Discovery-Mode July 29, 2022 12:42
Comment on lines +154 to +158
@backoff.on_exception(
backoff.expo,
(ConnectionError, TooManyRequestsError, ServerError, ServiceUnavailableError, GatewayTimeoutError),
max_tries=5,
factor=2)

Choose a reason for hiding this comment

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

Can we move the API call to some function and apply backoff over it? Currently, tap is doing date_window, so if any API failed, it will retry from the start.

Copy link
Author

Choose a reason for hiding this comment

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

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.

None yet

2 participants