Skip to content

feat: implement configurable post-stop actions for stop conditions#81

Merged
takitsu21 merged 13 commits intotakitsu21:mainfrom
theguy000:feat/configurable-stop-behavior
Mar 23, 2026
Merged

feat: implement configurable post-stop actions for stop conditions#81
takitsu21 merged 13 commits intotakitsu21:mainfrom
theguy000:feat/configurable-stop-behavior

Conversation

@theguy000
Copy link
Copy Markdown
Contributor

When stop conditions are met (ratio, upload, download, or time), users can now choose the post-stop action:

  • continue seeding (idle)
  • stop seeding completely, or
    -automatically delete the instance.

The backend tracks stop_condition_met state and executes the chosen action. On the frontend, a new Settings dropdown appears in stop condition settings when any threshold is configured, allowing selection of the desired behavior. This works seamlessly across web UI, CLI, and desktop applications.

Copy link
Copy Markdown
Owner

@takitsu21 takitsu21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,
The idle state does not work I have just tested it and it keeps uploading even after a condition is met if you can check please.
Maybe we should rename the Stop seeding to Stop because maybe the user is only leeching (rare but possible) and same for Continue seeding (Idle) => Continue (Idle) .
Thanks for your contributions !

@theguy000 theguy000 requested a review from takitsu21 March 22, 2026 04:14
When stop conditions are met (ratio, upload, download, or time), users can now choose the post-stop action: continue seeding (idle), stop seeding completely, or automatically delete the instance. The backend tracks stop_condition_met state and executes the chosen action. On the frontend, a new Settings dropdown appears in stop condition settings when any threshold is configured, allowing selection of the desired behavior. This works seamlessly across web UI, CLI, and desktop applications.
…ditions

Change stop condition checks (ratio, uploaded, downloaded) to compare
against cumulative values across all sessions rather than session-only
values. This fixes the stop condition not working as intended.
@theguy000 theguy000 force-pushed the feat/configurable-stop-behavior branch from 1c2c917 to 6212c10 Compare March 22, 2026 04:17
@theguy000
Copy link
Copy Markdown
Contributor Author

Note: When resuming a stopped instance, there will be a brief moment of upload (one tick) before it recognizes the stop condition and stops again. This is expected and the amount is negligible. Same goes for when the stop condition is met while the instance is running.

@takitsu21 takitsu21 merged commit f7e77eb into takitsu21:main Mar 23, 2026
2 checks passed
@theguy000 theguy000 deleted the feat/configurable-stop-behavior branch March 24, 2026 00:58
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.

2 participants