mirror of
https://github.com/miniflux/v2.git
synced 2025-10-05 19:31:01 +00:00
feat(feed): use exponential backoff for broken feeds
Instead of having a hard limit of 3 (regular) tries for feeds with errors, use an exponential backoff by default, with an upper-limit of one week. See https://github.com/miniflux/v2/issues/3334 for context/discussions.
This commit is contained in:
parent
8adcaed29e
commit
63b1279792
4 changed files with 16 additions and 5 deletions
|
@ -1058,8 +1058,8 @@ func TestPollingLimitPerHostOptionParsing(t *testing.T) {
|
|||
func TestPollingParsingErrorLimitOptionParsing(t *testing.T) {
|
||||
configParser := NewConfigParser()
|
||||
|
||||
if configParser.options.PollingParsingErrorLimit() != 3 {
|
||||
t.Fatalf("Expected POLLING_PARSING_ERROR_LIMIT to be 3 by default")
|
||||
if configParser.options.PollingParsingErrorLimit() != 0 {
|
||||
t.Fatalf("Expected POLLING_PARSING_ERROR_LIMIT to be 0 by default")
|
||||
}
|
||||
|
||||
if err := configParser.parseLines([]string{"POLLING_PARSING_ERROR_LIMIT=5"}); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue