File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,20 @@ def wait_collection_green(cls):
45
45
while True :
46
46
time .sleep (wait_time )
47
47
total += wait_time
48
+
48
49
collection_info = cls .client .get_collection (QDRANT_COLLECTION_NAME )
49
50
if collection_info .status != CollectionStatus .GREEN :
50
51
continue
51
52
time .sleep (wait_time )
52
53
collection_info = cls .client .get_collection (QDRANT_COLLECTION_NAME )
53
54
if collection_info .status == CollectionStatus .GREEN :
54
- break
55
+ vectors_count = collection_info .vectors_count
56
+ indexed_vectors_count = collection_info .indexed_vectors_count
57
+ if vectors_count > indexed_vectors_count :
58
+ print (f"waiting on fully indexed collection. vectors_count { vectors_count } != indexed_vectors_count { indexed_vectors_count } " )
59
+ continue
60
+ else :
61
+ break
55
62
return total
56
63
57
64
@classmethod
You can’t perform that action at this time.
0 commit comments