feat(setting): add move transfer threads option - #2907
Merged
Conversation
- Register move_task_threads_num in the traffic settings so the move transfer queue concurrency can be tweaked from the admin UI
Member
|
@claude check if these changes are really taking effort to threads by move_task_threads_num |
j2rong4cn
approved these changes
Aug 8, 2026
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.
Summary / 摘要
The move transfer task manager already read the move_task_threads_num setting, but the setting was never registered in the initial settings list, so move transfer concurrency was locked to its default (5) with no way to adjust it from the admin UI.
This PR registers move_task_threads_num in the Traffic settings group, mirroring the existing copy_task_threads_num entry. On startup initSettings() inserts the new key into the database, and the existing setting-change callback applies it to MoveTaskManager immediately without a restart.
用户可感知行为:管理后台 → 设置 → 传输(Traffic) 新增「移动任务线程数」(move_task_threads_num),默认 5,保存后即时生效。
Testing / 测试
Checklist / 检查清单
AI Disclosure / AI 使用声明
Minor AI assistance only: a one-line setting registration mirroring the adjacent existing entry, prepared with AI assistance. No Co-authored-by trailer is included; the submitting account is responsible for this contribution.