Refactor file processing to use asyncio for transcribing, improving concurrency. (#24379)

This commit is contained in:
Jacob Leksan
2026-05-09 03:17:47 +09:00
committed by GitHub
parent 552bbcecfa
commit 8b78821ba4
+7 -1
View File
@@ -125,7 +125,13 @@ async def process_uploaded_file(
if strict_match_mime_type(stt_supported_content_types, content_type):
file_path_processed = await asyncio.to_thread(Storage.get_file, file_path)
result = transcribe(request, file_path_processed, file_metadata, user)
result = await asyncio.to_thread(
transcribe,
request,
file_path_processed,
file_metadata,
user,
)
await process_file(
request,