Skip to content

Commit

Permalink
Merge pull request #1 from zh19990906/zh19990906-patch-1
Browse files Browse the repository at this point in the history
Update milvus_client.py
  • Loading branch information
zh19990906 authored Jun 26, 2024
2 parents 0318663 + 2704dd0 commit 92511f6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pymilvus/milvus_client/milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,14 +708,16 @@ def release_collection(self, collection_name: str, timeout: Optional[float] = No
def get_load_state(
self,
collection_name: str,
partition_name: Optional[str] = "",
partition_names: Optional[Union[str, List[str]]] = "",
timeout: Optional[float] = None,
**kwargs,
) -> Dict:
conn = self._get_connection()
partition_names = None
if partition_name:
partition_names = [partition_name]
if partition_names:
if isinstance(partition_names, str):
partition_names = [partition_names]
else:
partition_names = None
try:
state = conn.get_load_state(collection_name, partition_names, timeout=timeout, **kwargs)
except Exception as ex:
Expand Down

0 comments on commit 92511f6

Please sign in to comment.