mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
feat: 添加任务管理模块
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user