新增获取全部知识库的接口,api版本号重归到v1
This commit is contained in:
@@ -30,6 +30,11 @@ class CrawlerService:
|
||||
self._active_workers: Dict[int, set] = {}
|
||||
self._lock = threading.Lock()
|
||||
|
||||
def get_knowledge_base_list(self):
|
||||
"""获取知识库列表"""
|
||||
return data_service.get_all_tasks()
|
||||
|
||||
|
||||
def _track_start(self, task_id: int, url: str):
|
||||
"""[Internal] 标记某个URL开始处理"""
|
||||
with self._lock:
|
||||
|
||||
Reference in New Issue
Block a user