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

Limit the max nextUpdateTime delay to 24 hour #3074

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

wofferl
Copy link
Collaborator

@wofferl wofferl commented Jan 28, 2025

Summary

As discussed in #3013 the nextUpdateTime feed-io calculates is not always accurate and can push the next update too far in the future.
alexdebril/feed-io#434 will fix some problems, but for feeds with sporadic articles an accurate calculation is impossible.
Therefore, the maximum next update time should be limited to 24 hours, which is also the value used when a feed is recognized as sleeping.
This PR also sets the sleepy feed detection to the default of 7 days, which should work for most feeds. A small value like one or two days can cause feeds that have for example no posts on the weekend, not being downloaded until monday evening.

Checklist

@SMillerDev
Copy link
Contributor

Looks fine to me

@Grotax Grotax enabled auto-merge (rebase) January 30, 2025 09:55
auto-merge was automatically disabled January 30, 2025 09:58

Rebase failed

…ys and limit the time to the next update to a maximum of 24 hours

Signed-off-by: Wolfgang <[email protected]>
@Grotax Grotax enabled auto-merge (rebase) January 30, 2025 10:57
@Grotax Grotax merged commit a646552 into nextcloud:master Jan 30, 2025
24 checks passed
Grotax added a commit that referenced this pull request Jan 30, 2025
Changed
- Set mobileLayout to `horizontal-split` and add nav buttons for articles in mobile view (#3046)
- set the duration after which a feed is considered sleepy to 7 days when using `nextUpdateTime` (#3074)
- limit the time to the next update to a maximum of 24 hours when using `nextUpdateTime` (#3074)

Fixed
- Show error on folders only if at least one feed has more than eight errors (#3073)

Signed-off-by: Benjamin Brahmer <[email protected]>
@Grotax Grotax mentioned this pull request Jan 30, 2025
Grotax added a commit that referenced this pull request Jan 30, 2025
Changed
- Set mobileLayout to `horizontal-split` and add nav buttons for articles in mobile view (#3046)
- set the duration after which a feed is considered sleepy to 7 days when using `nextUpdateTime` (#3074)
- limit the time to the next update to a maximum of 24 hours when using `nextUpdateTime` (#3074)

Fixed
- Show error on folders only if at least one feed has more than eight errors (#3073)

Signed-off-by: Benjamin Brahmer <[email protected]>
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