MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / wait_for_indices_to_sync

Function wait_for_indices_to_sync

tests/flow/index_utils.py:66–72  ·  view source on GitHub ↗
(graph)

Source from the content-addressed store, hash-verified

64
65# wait for all graph indices to by operational
66def wait_for_indices_to_sync(graph):
67 q = "CALL db.indexes() YIELD status WHERE status <> 'OPERATIONAL' RETURN count(1)"
68 while True:
69 result = graph.query(q, read_only=True)
70 if result.result_set[0][0] == 0:
71 break
72 time.sleep(0.5) # sleep 500ms
73

Callers 8

build_indicesMethod · 0.85
populate_graphMethod · 0.85
test_CRUD_replicationMethod · 0.85
create_drop_indexMethod · 0.85
build_indicesMethod · 0.85
populate_graphMethod · 0.85
build_indicesMethod · 0.85
build_indicesMethod · 0.85

Calls 1

queryMethod · 0.45

Tested by 8

build_indicesMethod · 0.68
populate_graphMethod · 0.68
test_CRUD_replicationMethod · 0.68
create_drop_indexMethod · 0.68
build_indicesMethod · 0.68
populate_graphMethod · 0.68
build_indicesMethod · 0.68
build_indicesMethod · 0.68