DescriptionMore strategic retries in fetch.
Define a generic conditional exponential backoff retry decorator.
Reimplement the content in fetch to use this decorator instead of
"_retry". Move decorator usage to the specific site of retryable failure
and only retry known-retryable errors so we don't waste time on failures.
This also adds a retry to Gitiles JSON fetching and a unit test to
assert that this retry logic works successfully.
Defines GitilesFetchError, which includes the status code and error text
ain the output message.
BUG=chromium:649529, chromium:649466
TEST=unit
Committed: https://github.com/luci/recipes-py/commit/044dba0634a396fd78f97f0f633136420780fc37
Patch Set 1 #
Total comments: 6
Patch Set 2 : More strategic retries in fetch. #
Messages
Total messages: 11 (5 generated)
|