#956·spleeter

[错误] Separator.join(timeout=...) 参数被默认忽略

作者: chirag127创建于 2026年7月4日更新于 2026年7月4日

□ 问题 Separator.join (timeout)' 将永远挡住,而不论timeout' 的论据如何;参数已死。

□ 咬伤 `配偶/分离者.py:127-138':

zz
def 加入( 自, 超时: int = 200) - > 无:
和 len( self.  tasks) > 0 时:
任务 = self.  tasks.pop ()
任务. get ()
任务。wait( 超时=超时)

任务'是一个多加工的集合'。 AsyncResult.task.get ()'(没有timeout' arg)区块,每个区块无限制。 到“任务.wait(timeout=timeout)”运行时,任务已经完成,因此“timeout”没有效果。 使用“ 分离器. join (timeout=5) ” 的用户如果有子进程拖放, 仍然挂起 。

□ 预期 " 超时 " 限制每个任务的等待时间。

□ 实际 参数被忽略; 未绑定块 。

□ 修补 任务.get(timeout=timeout)' (去掉任务.wait'行)。

□ 环境 spleater 2.4.2 (pyproject.toml'), Python QQ3.8,<3.12,stdlib 多处理.pool.AsyncResult'(所有支持的CPython版本).

感谢您保持dezer/spleeter!

内容来源: deezer/spleeter