Repository navigation
feat(torrent): seed waiting torrents as soon as a seeder stops - #674
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
linroid
force-pushed
the
feat/torrent-seed-queue
branch
from
November 14, 2026 05:16
7e426f6 to
dd44afa
Compare
linroid
force-pushed
the
feat/torrent-seed-queue
branch
from
November 14, 2026 05:18
dd44afa to
26484fb
Compare
linroid
force-pushed
the
feat/torrent-seed-queue
branch
from
November 14, 2026 09:14
26484fb to
fac3c0c
Compare
Contributor
linroid
force-pushed
the
feat/torrent-seed-queue
branch
2 times, most recently
from
November 14, 2026 12:28
82fb49c to
d18bc57
Compare
linroid
force-pushed
the
feat/torrent-seed-queue
branch
from
November 14, 2026 12:32
d18bc57 to
a23006c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on the file priority PR; only the last commit belongs to this PR.
What
The "Seeding: a seed queue" row of #162.
A finished torrent that was meant to seed but found every engine slot taken kept its intent and then waited for the next start, or for sharing to be switched off and on. It now starts, oldest completion first, as soon as a seeder is told to stop or reaches a seed goal, so with a ratio or time goal a backlog seeds in turn.
TorrentControlswalks the waiting tasks again from the Stop command'sseedingStoppedhook, one walk at a time. It deliberately does not walk on every completion event: Ketch also reports those for restored tasks and for each change of what a completed task shows, which made a first attempt retry tasks that cannot seed over and over (caught bySeedingWatcherTest).Testing
TorrentSeedingControlTest.queue_seederToldToStop_handsItsSlotToTheNextTaskMeantToSeedagainst a real engine with one slot; the seeding suites (SeedingWatcherTest,TorrentSourceSeedingTest,KetchTorrentControllerTest) pass.Not covered here: a slot freed by a download that is paused, fails or is removed does not start a waiting seeder until the next of the events above.