Browse Source
Update del
Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
main
1 changed files with
6 additions and
6 deletions
-
milvus_client.py
|
|
@ -51,9 +51,9 @@ class MilvusClient(PyOperator): |
|
|
|
def shared_type(self): |
|
|
|
return SharedType.NotShareable |
|
|
|
|
|
|
|
def __del__(self): |
|
|
|
if connections.has_connection(self._connect_name): |
|
|
|
try: |
|
|
|
connections.disconnect(self._connect_name) |
|
|
|
except: |
|
|
|
pass |
|
|
|
# def __del__(self): |
|
|
|
# if connections.has_connection(self._connect_name): |
|
|
|
# try: |
|
|
|
# connections.disconnect(self._connect_name) |
|
|
|
# except: |
|
|
|
# pass |
|
|
|