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

Reduce no of retries for no connection to 1 #199

Merged
merged 4 commits into from Sep 4, 2022

Conversation

nemanjamart
Copy link
Contributor

No description provided.

Copy link
Contributor

@marblestation marblestation left a comment

Choose a reason for hiding this comment

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

Just a small fix and we are there :-)

@@ -18,9 +18,15 @@ def __init__(self, endpoint, service_uri, deploy_path, route):
self.cs = None
try:
self.default_request_timeout = current_app.config.get("DEFAULT_REQUEST_TIMEOUT", 60)
self.pool_connections = current_app.config.get("REQUESTS_POOL_CONNECTIONS", 20)
self.pool_maxsize = current_app.config.get("REQUESTS_POOL_MAXSIZE", 1000)
self.max_retries = current_app.config.get("REQUESTS_MAX_RETRIES", 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

REQUESTS_MAX_RETRIES does not exist in the config file but REQUESTS_POOL_RETRIES does, could you pick one and correct the other?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for spotting this. Fixed!

@nemanjamart nemanjamart merged commit e6ea4c0 into adsabs:master Sep 4, 2022
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