Remove duplicated graph db lock
This commit is contained in:
parent
b8a2d5b223
commit
ebcabe29ca
1 changed files with 12 additions and 18 deletions
|
|
@ -1901,9 +1901,6 @@ Rebuilt: {len(entities_to_rebuild)} entities, {len(relationships_to_rebuild)} re
|
||||||
"""
|
"""
|
||||||
from .utils_graph import adelete_by_entity
|
from .utils_graph import adelete_by_entity
|
||||||
|
|
||||||
# Use graph database lock to ensure atomic merges and updates
|
|
||||||
graph_db_lock = get_graph_db_lock(enable_logging=False)
|
|
||||||
async with graph_db_lock:
|
|
||||||
return await adelete_by_entity(
|
return await adelete_by_entity(
|
||||||
self.chunk_entity_relation_graph,
|
self.chunk_entity_relation_graph,
|
||||||
self.entities_vdb,
|
self.entities_vdb,
|
||||||
|
|
@ -1924,9 +1921,6 @@ Rebuilt: {len(entities_to_rebuild)} entities, {len(relationships_to_rebuild)} re
|
||||||
"""
|
"""
|
||||||
from .utils_graph import adelete_by_relation
|
from .utils_graph import adelete_by_relation
|
||||||
|
|
||||||
# Use graph database lock to ensure atomic merges and updates
|
|
||||||
graph_db_lock = get_graph_db_lock(enable_logging=False)
|
|
||||||
async with graph_db_lock:
|
|
||||||
return await adelete_by_relation(
|
return await adelete_by_relation(
|
||||||
self.chunk_entity_relation_graph,
|
self.chunk_entity_relation_graph,
|
||||||
self.relationships_vdb,
|
self.relationships_vdb,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue