feat(knowledge): offload manual processing to async tasks

This commit is contained in:
wizardchen
2026-03-17 19:26:29 +08:00
committed by lyingbug
parent 49b5f1a739
commit 3450ed5e41
7 changed files with 629 additions and 27 deletions
+3
View File
@@ -78,6 +78,9 @@ func RunAsynqServer(params AsynqTaskParams) *asynq.ServeMux {
// Register document processing handler
mux.HandleFunc(types.TypeDocumentProcess, params.KnowledgeService.ProcessDocument)
// Register manual knowledge processing handler (cleanup + re-indexing)
mux.HandleFunc(types.TypeManualProcess, params.KnowledgeService.ProcessManualUpdate)
// Register FAQ import handler (includes dry run mode)
mux.HandleFunc(types.TypeFAQImport, params.KnowledgeService.ProcessFAQImport)