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-16349: Add request timeout #147

Merged
merged 4 commits into from
Dec 1, 2021
Merged

TDL-16349: Add request timeout #147

merged 4 commits into from
Dec 1, 2021

Conversation

hpatel41
Copy link
Contributor

Description of change

TDL-16349: Add request timeout

  • Use default timeout of 300 seconds if the user does not enter the preferred timeout value

Manual QA steps

Risks

Rollback steps

  • revert this branch

@@ -48,7 +48,8 @@ This tap:
```json

Choose a reason for hiding this comment

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

Add the description for the request_timeout in point 3

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

Copy link

@umangagrawal-crest umangagrawal-crest left a comment

Choose a reason for hiding this comment

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

Do we need to specify the dependency of backoff in the setup.py file ??

@hpatel41
Copy link
Contributor Author

Do we need to specify the dependency of backoff in the setup.py file ??

When we import singer-python, backoff will be imported. Reference

config_request_timeout = args.config.get('request_timeout')

if config_request_timeout and float(config_request_timeout):
request_timeout = float(config_request_timeout)
Copy link
Contributor

Choose a reason for hiding this comment

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

Add detailed comment above if condition.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added comment.

Comment on lines 1027 to 1029
request_timeout = float(config_request_timeout)
# return the timeout from config
return request_timeout
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
request_timeout = float(config_request_timeout)
# return the timeout from config
return request_timeout
return float(config_request_timeout)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@KrisPersonal KrisPersonal merged commit ba9af79 into master Dec 1, 2021
@KrisPersonal KrisPersonal deleted the add-request-timeout branch December 1, 2021 23:06
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.

7 participants