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

Increase client timeouts and tweak response_fields behaviour #1514

Merged
merged 4 commits into from Feb 16, 2023

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Feb 13, 2023

This PR increases the default HTTP read timeout and makes it configurable via a parameter.

Also reduces the response fields to just "id" when a count query is being performed.

@codecov
Copy link

codecov bot commented Feb 14, 2023

Codecov Report

Merging #1514 (5121fcf) into master (ad8a9fa) will decrease coverage by 0.01%.
The diff coverage is 81.25%.

@@            Coverage Diff             @@
##           master    #1514      +/-   ##
==========================================
- Coverage   91.01%   91.01%   -0.01%     
==========================================
  Files          74       74              
  Lines        4475     4484       +9     
==========================================
+ Hits         4073     4081       +8     
- Misses        402      403       +1     
Flag Coverage Δ
project 91.01% <81.25%> (-0.01%) ⬇️
validator 90.36% <81.25%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
optimade/client/client.py 80.74% <72.72%> (-0.02%) ⬇️
optimade/client/cli.py 89.28% <100.00%> (+0.82%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ml-evs ml-evs merged commit a8d9209 into master Feb 16, 2023
@ml-evs ml-evs deleted the ml-evs/client_tweaks branch February 16, 2023 00:04
@ml-evs ml-evs added enhancement New feature or request client Issues/PRs relating to the OPTIMADE client. labels Feb 20, 2023
@ml-evs ml-evs changed the title Tweak client timeouts and response_fields behaviour Increase client timeouts and tweak response_fields behaviour Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Issues/PRs relating to the OPTIMADE client. enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants