Repository navigation
fix: avoid blocking the event loop when listing ElevenLabs voices - #15928
olegsuhoparov wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe voice ID endpoint now runs the synchronous ElevenLabs ChangesVoice catalog request
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
|
Could a maintainer please rerun the failed Docker verification job? The first attempt and automatic retry both logged a runner shutdown signal followed by cancellation. The final CI summary lists Docker Tests as its only failed dependency. |
Description
The async
/api/v1/voice/elevenlabs/voice_idsendpoint calls the synchronous ElevenLabsvoices.get_all()method. While that request waits for the provider, it blocks other work on the worker's event loop.Run only that SDK call with
asyncio.to_thread. Keep authorization, per-user credential lookup, the existing client lifecycle, response mapping, and error behavior unchanged. This lets concurrent requests progress while ElevenLabs responds; it does not reduce provider response time.Type of change
How Has This Been Tested?
webrtcvadis not installed.git diff --checkpass. Pre-commit used existing cached hook environments.codeflash-benchmarkandrerunfailuresplugins to avoid sandbox-only configuration/socket errors.Checklist
Summary by CodeRabbit