fix: 修复任务并发被单引擎队列误钳制#368
Closed
nightt5879 wants to merge 1 commit into
Closed
Conversation
|
@nightt5879 is attempting to deploy a commit to the buxuku's projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
感谢你的 PR!根因分析完全正确——问题就出在调度器把受限引擎的整个任务队列钳成了串行,「取消队列级钳制、只让转写阶段互斥」的思路也和我们的方案一致,分析很专业。 不巧的是我这两天刚好在 分支上的实现与本 PR 的主要差异:
所以打算采用分支上的实现,随下个版本发布,届时会关闭本 PR 和 #367。再次感谢你的贡献和清晰的分析,欢迎发版后帮忙验证效果! |
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.
close #367
修改内容
根因
原来的调度器只要发现执行中或待派发队列里存在 faster-whisper / FunASR / Qwen / FireRed,就把整批任务的有效并发数降为 1。这个保护范围过大,导致用户即使设置并发数为 5,提取、翻译以及 translateOnly 场景也只能一个个处理。
验证
npm run test:enginesnpm run check:i18nnpm run build