A download a restart stopped is taken up again at the start (#410)
A file download was never marked 'downloading', only torrents were, so one under way when the daemon stopped stayed 'pending' and requeue_interrupted had nothing to do. The first pass after a start scans only the feeds that are due, and a pending file is fetched only in a scan of its feed, so after a deploy a half-downloaded episode waited for its feed's next check: an hour on the default schedule, a day for a daily feed. Found by the daemon test of #400, where the episode was not asked for again in a minute after a restart. fetch_one now marks the file 'downloading' while it runs, as a torrent's is; every way out of it already records 'done' or 'error', and the scan's queue takes only 'pending', so a running download is not queued twice. requeue_interrupted gives back the ids it put back, and the daemon puts each on the worker's queue before it serves, where download_one takes it whatever its feed's schedule says. The daemon test now checks the restarted daemon asks for the episode again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Fixed
|
||||
|
||||
- A download a restart stopped, a deploy's for one, is taken up again as the daemon starts, rather than waiting for its feed's next check, an hour or a day away (#410).
|
||||
- A YouTube channel no longer misses most days' videos: YouTube answers some feed requests with a 404 or 500 it does not mean, and ipx now asks again, twice, a second apart, before calling the feed failing (#382), and then every hour for a day where it would have waited a day, since YouTube's failures run for hours; and its YouTube feeds are read one at a time, two seconds apart, since YouTube refuses many asked together (#386).
|
||||
- Syncing an OPML or Patreon list reads who subscribes to it once, not once for every feed it lists: a list of 922 was thousands of the same queries a sync (#377).
|
||||
- A feed you already have, added again by the same address over http rather than https or the other way round, is the one you have, not a second subscription with every item twice. Changing a feed's address to another feed's over the other scheme is refused the same way (#362).
|
||||
|
||||
Reference in New Issue
Block a user