mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-18 02:16:07 +00:00
feat: 添加任务管理模块
This commit is contained in:
@@ -69,11 +69,12 @@ class APIGroup(metaclass=abc.ABCMeta):
|
||||
**kwargs
|
||||
) -> asyncio.Task:
|
||||
"""执行请求"""
|
||||
task = asyncio.create_task(self._do(method, path, data, params, headers, **kwargs))
|
||||
# task = asyncio.create_task(self._do(method, path, data, params, headers, **kwargs))
|
||||
|
||||
self.ap.asyncio_tasks.append(task)
|
||||
# self.ap.asyncio_tasks.append(task)
|
||||
|
||||
return task
|
||||
|
||||
return self.ap.task_mgr.create_task(self._do(method, path, data, params, headers, **kwargs)).task
|
||||
|
||||
def gen_rid(
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user