Merge pull request #2383 from pipecat-ai/aleix/riva-stt-iterator-exception

properly handle concurrent.futures.CancelledError
This commit is contained in:
Mark Backman
2025-08-07 04:39:56 -07:00
committed by GitHub
3 changed files with 24 additions and 7 deletions

View File

@@ -81,6 +81,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed a `DailyTransport` issue that would result in an unhandled
`concurrent.futures.CancelledError` when a future is cancelled.
- Fixed a `RivaSTTService` issue that would result in an unhandled
`concurrent.futures.CancelledError` when a future is cancelled when reading
from the audio chunks from the incoming audio stream.
- Fixed an issue in the `BaseOutputTransport`, mainly reproducible with
`FastAPIWebsocketOutputTransport` when the audio mixer was enabled, where the
loop could consume 100% CPU by continuously returning without delay, preventing