MCPcopy Create free account
hub / github.com/alibaba/GraphScope / close

Method close

python/graphscope/client/session.py:699–710  ·  view source on GitHub ↗

Closes this session. This method frees all resources associated with the session. Note that closing will ignore SIGINT and SIGTERM signal and recover later.

(self)

Source from the content-addressed store, hash-verified

697 return not self._disconnected
698
699 def close(self):
700 """Closes this session.
701
702 This method frees all resources associated with the session.
703
704 Note that closing will ignore SIGINT and SIGTERM signal and recover later.
705 """
706 if threading.current_thread() is threading.main_thread():
707 with SignalIgnore([signal.SIGINT, signal.SIGTERM]):
708 self._close()
709 else:
710 self._close()
711
712 def _close(self): # noqa: C901
713 if self._closed:

Callers 5

_send_heartbeatMethod · 0.95
__del__Method · 0.95
__exit__Method · 0.95
run_fetchesMethod · 0.95
_connectMethod · 0.95

Calls 2

_closeMethod · 0.95
SignalIgnoreClass · 0.90

Tested by

no test coverage detected