refac/fix: multi-replica tasks

This commit is contained in:
Timothy Jaeryang Baek
2025-06-09 17:21:10 +04:00
parent 5fae7360fb
commit ea8dc333ee
3 changed files with 30 additions and 30 deletions

View File

@@ -2413,7 +2413,7 @@ async def process_chat_response(
await response.background()
# background_tasks.add_task(post_response_handler, response, events)
task_id, _ = create_task(
task_id, _ = await create_task(
request, post_response_handler(response, events), id=metadata["chat_id"]
)
return {"status": True, "task_id": task_id}