mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-08 08:07:21 +08:00
Fix delete graphrag not take effect in UI (#14879)
### What problem does this PR solve? Fix delete graphrag not take effect in UI ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -452,6 +452,10 @@ def delete_knowledge_graph(dataset_id: str, tenant_id: str):
|
||||
# Wiping the graph invalidates any phase-completion markers used to
|
||||
# short-circuit resolution / community detection on resume.
|
||||
clear_phase_markers(dataset_id)
|
||||
KnowledgebaseService.update_by_id(
|
||||
kb.id,
|
||||
{"graphrag_task_id": "", "graphrag_task_finish_at": None},
|
||||
)
|
||||
|
||||
return True, True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user