File tree Expand file tree Collapse file tree
ansible/playbooks/roles/run-transfer-speed/files Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def upload_vectors(self, vectors: np.ndarray):
106106 parallel = 16 ,
107107 )
108108
109- def wait_for_green (self , timeout : int = 1800 ):
109+ def wait_for_green (self , timeout : int = 600 ):
110110 print ("Waiting for green status..." )
111111 wait_time = 5.0
112112 total = 0
@@ -116,10 +116,10 @@ def wait_for_green(self, timeout: int = 1800):
116116 total += wait_time
117117 info = self .primary .get_collection (COLLECTION_NAME )
118118 status = info .status
119- indexed = info .indexed_vectors_count
120- total_vectors = info .vectors_count
121- segments = info .segments_count
122- print (f" [{ total :.0f} s] status={ status } , indexed={ indexed } /{ total_vectors } , segments={ segments } " )
119+ indexed = info .indexed_vectors_count or 0
120+ total_points = info .points_count or 0
121+ segments = info .segments_count or 0
122+ print (f" [{ total :.0f} s] status={ status } , indexed={ indexed } /{ total_points } , segments={ segments } " )
123123
124124 if status != models .CollectionStatus .GREEN :
125125 continue
You can’t perform that action at this time.
0 commit comments