logo
Browse Source

Update del

Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
main
shiyu22 2 years ago
parent
commit
c8f81f1b58
  1. 12
      milvus_client.py

12
milvus_client.py

@ -51,9 +51,9 @@ class MilvusClient(PyOperator):
def shared_type(self): def shared_type(self):
return SharedType.NotShareable 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

Loading…
Cancel
Save