Skip to content

Set timeout policy on requests#100

Merged
kislyuk merged 1 commit intomasterfrom
akislyuk-retry-streaming-read-errors-and-timeout
Apr 2, 2018
Merged

Set timeout policy on requests#100
kislyuk merged 1 commit intomasterfrom
akislyuk-retry-streaming-read-errors-and-timeout

Conversation

@kislyuk
Copy link
Copy Markdown
Member

@kislyuk kislyuk commented Apr 2, 2018

No description provided.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Apr 2, 2018

Codecov Report

Merging #100 into master will increase coverage by 0.32%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
+ Coverage   87.61%   87.93%   +0.32%     
==========================================
  Files          29       29              
  Lines         969      970       +1     
==========================================
+ Hits          849      853       +4     
+ Misses        120      117       -3
Impacted Files Coverage Δ
hca/util/__init__.py 91.6% <100%> (+1.23%) ⬆️
hca/dss/__init__.py 90.47% <76.92%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2cc8168...e282d7d. Read the comment docs.

Comment thread hca/util/__init__.py Outdated


class _ClientMethodFactory(object):
retry_policy = RetryPolicy(read=10, status=10, status_forcelist=frozenset({502, 503, 504}))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you want to add 500? c.f., HumanCellAtlas/dcp-preview#10

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.

Great catch. Added.

Comment thread hca/util/__init__.py Outdated

class _ClientMethodFactory(object):
retry_policy = RetryPolicy(read=10, status=10, status_forcelist=frozenset({502, 503, 504}))
timeout_policy = timeout.Timeout(connect=300, read=300)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Those both seem really high to me.

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.

Adjusted to 60, 120.

@kislyuk kislyuk changed the base branch from akislyuk-retry-streaming-read-errors to master April 2, 2018 19:48
Tweak values
@kislyuk kislyuk force-pushed the akislyuk-retry-streaming-read-errors-and-timeout branch from e144fe3 to e282d7d Compare April 2, 2018 20:04
@kislyuk
Copy link
Copy Markdown
Member Author

kislyuk commented Apr 2, 2018

Merging because https://travis-ci.org/HumanCellAtlas/dcp-cli/builds/361328725 (the pre-rebase version) succeeded & verbal approval.

@kislyuk kislyuk merged commit 9a0fd5d into master Apr 2, 2018
@kislyuk kislyuk deleted the akislyuk-retry-streaming-read-errors-and-timeout branch April 2, 2018 20:15
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.

3 participants