Repository navigation
Conversation
AyhamJo7
requested review from
alreadytaikeune,
mmoussallam and
romi1502
as code owners
November 21, 2026 13:32
Now that the timeout is honoured, the old 200-second default would make the CLI raise on batches: join pops tasks last-first, so the wait for the last task includes the time the pool spends on all earlier files. Defaulting to None keeps the CLI and existing callers unbounded as before, while an explicit timeout bounds each task.
Author
|
Follow-up in c788efb: with the timeout now enforced, the old 200-second default would make |
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.
Description
Fixes #956.
Separator.join(self, timeout: int = 200)previously calledtask.get()without atimeoutargument before callingtask.wait(timeout=timeout). BecauseAsyncResult.get()blocks indefinitely whentimeoutis omitted, thetimeoutparameter was silently ignored andtask.wait(timeout=timeout)was unreachable until the task had already finished.Changes
task.get()+task.wait(timeout=timeout)inspleeter/separator.pywithtask.get(timeout=timeout), which bounds the wait per task (multiprocessing.TimeoutErroron timeout) while continuing to propagate worker exceptions.tests/test_separator.py(test_join_respects_timeout,test_join_drains_tasks_and_propagates_errors).How this patch was tested
multiprocessing.pool.ThreadPool(Separator.join(timeout=0.05)blocked until task completion instead of raisingmultiprocessing.TimeoutError).pytest -v tests/test_separator.py -k test_join-> 2 passed.black spleeter/separator.py --checkandisort spleeter/separator.py --check-> clean.