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

Method info

python/graphscope/client/session.py:631–654  ·  view source on GitHub ↗

Show all resource info associated with session in json format.

(self)

Source from the content-addressed store, hash-verified

629
630 @property
631 def info(self):
632 """Show all resource info associated with session in json format."""
633 info = {}
634 if self._closed:
635 info["status"] = "closed"
636 elif self._grpc_client is None or self._disconnected:
637 info["status"] = "disconnected"
638 else:
639 info["status"] = "active"
640
641 if self._cluster_type == types_pb2.K8S:
642 info["type"] = "k8s"
643 info["engine_hosts"] = ",".join(self._pod_name_list)
644 info["namespace"] = self._config.kubernetes_launcher.namespace
645 else:
646 info["type"] = "hosts"
647 info["engine_hosts"] = self._engine_config["engine_hosts"]
648
649 info["cluster_type"] = types_pb2.ClusterType.Name(self._cluster_type)
650 info["session_id"] = self.session_id
651 info["num_workers"] = self._config.session.num_workers
652 info["coordinator_endpoint"] = self._coordinator_endpoint
653 info["engine_config"] = self._engine_config
654 return info
655
656 @property
657 def closed(self):

Callers 15

beforeClassMethod · 0.45
afterClassMethod · 0.45
test0CreateGraphMethod · 0.45
test1BulkLoadingMethod · 0.45
test4CypherAdhocQueryMethod · 0.45
test5GremlinAdhoQueryMethod · 0.45
test8RestartMethod · 0.45

Calls 1

joinMethod · 0.45

Tested by 15

beforeClassMethod · 0.36
afterClassMethod · 0.36
test0CreateGraphMethod · 0.36
test1BulkLoadingMethod · 0.36
test4CypherAdhocQueryMethod · 0.36
test5GremlinAdhoQueryMethod · 0.36
test8RestartMethod · 0.36