mirror of https://github.com/milvus-io/milvus.git
[skip ci] Modify the conditions for checking the existence of milvus (#9403)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>pull/9412/head
parent
4be169635d
commit
77c9a8daa1
|
@ -401,8 +401,13 @@ class MilvusClient(object):
|
|||
i = 0
|
||||
while i < timeout:
|
||||
try:
|
||||
row_count = self.count(collection_name=collection_name)
|
||||
if row_count:
|
||||
# row_count = self.count(collection_name=collection_name)
|
||||
# if row_count:
|
||||
# time.sleep(1)
|
||||
# i = i + 1
|
||||
# continue
|
||||
res = self._milvus.has_collection(collection_name)
|
||||
if res:
|
||||
time.sleep(1)
|
||||
i = i + 1
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue