feat: 添加任务管理模块

This commit is contained in:
Junyan Qin
2024-10-22 18:09:18 +08:00
parent 26770439bb
commit c151665419
10 changed files with 121 additions and 36 deletions

View File

@@ -60,8 +60,9 @@ class Controller:
# 通知其他协程,有新的请求可以处理了
self.ap.query_pool.condition.notify_all()
task = asyncio.create_task(_process_query(selected_query))
self.ap.asyncio_tasks.append(task)
# task = asyncio.create_task(_process_query(selected_query))
# self.ap.asyncio_tasks.append(task)
self.ap.task_mgr.create_task(_process_query(selected_query))
except Exception as e:
# traceback.print_exc()