Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove gather from shutdown to prevent task destruction warning
Previously, the shutdown process was using both sequential task awaiting and gather() to wait for task completion: ```python for task in tasks: await task await asyncio.gather(*tasks) ``` This created an issue where the gather() operation would create a new task that was being destroyed before completion, resulting in the warning: "Task was destroyed but it is pending!" The fix simplifies the shutdown process by removing the redundant gather() call and only using sequential task awaiting. This ensures clean task completion without creating additional tasks that could be destroyed during shutdown. Also improved logging to better track the shutdown process and task completion status.
- Loading branch information