From 45d676bc05d083a20217927bacbeb4d7ea158409 Mon Sep 17 00:00:00 2001 From: Wang Qi Date: Wed, 13 May 2026 13:49:16 +0800 Subject: [PATCH] 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) --- api/apps/services/dataset_api_service.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/apps/services/dataset_api_service.py b/api/apps/services/dataset_api_service.py index 9e49596539..d2b4497da8 100644 --- a/api/apps/services/dataset_api_service.py +++ b/api/apps/services/dataset_api_service.py @@ -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