fixed: create_task to return coroutine result

This commit is contained in:
Om Chauhan
2025-12-29 07:46:15 +05:30
parent 192ede6e34
commit a181e01310

View File

@@ -157,7 +157,7 @@ class TaskManager(BaseTaskManager):
async def run_coroutine():
try:
await coroutine
return await coroutine
except asyncio.CancelledError:
logger.trace(f"{name}: task cancelled")
# Re-raise the exception to ensure the task is cancelled.