Repository navigation
fix: 空输入时跳过 ThreadPoolExecutor 避免 max_workers=0 崩溃 (#179) - #180
Merged
zj1123581321 merged 1 commit intoOct 6, 2026
Merged
Conversation
Collaborator
|
感谢贡献!审查结论:可合并,无阻塞问题。空文本任务现在会正常走到 为让完整门禁(含模型主审,fork PR 上会被跳过)在同一提交上运行,已开同仓镜像 #183,提交 SHA 与本 PR 完全相同;门禁全绿后会直接合并本 PR,保留你的署名。 两条非阻塞意见(P2,可以不在本 PR 处理,后续单独跟进):
|
Contributor
Author
|
感谢详细审查和开启镜像门禁! 关于两条 P2 说明:
静待门禁跑通,辛苦维护! |
This was referenced Oct 6, 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.
修复 #179 描述的极短音频/空转录文本进入 LLM 阶段时
ThreadPoolExecutor(max_workers=0)抛出ValueError导致任务永久失败的问题。变更内容
PlainTextProcessor._calibrate_segments: 输入分段列表为空时直接返回([], []),不创建线程池与提交任务;process()内文本过短且无内容时保持分段为空,统计层在分段数为 0 时报告calibration_status=none。SpeakerAwareProcessor._calibrate_chunks: 输入分块列表为空时直接返回([], stats)(包含清零的统计计数与calibration_status=none),避免normalized_dialogs为空时向ThreadPoolExecutor传入max_workers=0。NotesProcessor.process: 在ThreadPoolExecutor创建前增加mapping.slices防御判断,为空时直接返回NotesResult(status=FAILED)。tests/unit/test_empty_input_processors.py,并在tests/README.md登记,验证空分段、空对话及空文本端到端处理均正常返回且不抛异常。验证证据