Unload this graph from graphscope engine.
(self)
| 1070 | return self.__str__() |
| 1071 | |
| 1072 | def _unload(self): |
| 1073 | """Unload this graph from graphscope engine.""" |
| 1074 | rlt = None |
| 1075 | if self._session.info["status"] != "active" or self._key is None: |
| 1076 | return |
| 1077 | if self._detached: |
| 1078 | return |
| 1079 | |
| 1080 | # close the associated interactive and learning instances |
| 1081 | self._close_interactive_instances() |
| 1082 | self._close_learning_instances() |
| 1083 | |
| 1084 | # unload the graph |
| 1085 | rlt = self._session._wrapper(self._graph_node._unload()) |
| 1086 | self._key = None |
| 1087 | return rlt |
| 1088 | |
| 1089 | def __del__(self): |
| 1090 | # cleanly ignore all exceptions, cause session may already closed / destroyed. |
no test coverage detected