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

Method get_default

python/graphscope/client/session.py:1546–1554  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1544 self.stack = []
1545
1546 def get_default(self) -> Session:
1547 if not self.stack:
1548 logger.info("Creating default session ...")
1549 sess = session(
1550 cluster_type="hosts",
1551 num_workers=gs_config.session.default_local_num_workers,
1552 )
1553 sess.as_default()
1554 return self.stack[-1]
1555
1556 def empty(self) -> bool:
1557 return len(self.stack) == 0

Callers 1

get_default_sessionFunction · 0.80

Calls 2

as_defaultMethod · 0.80
infoMethod · 0.45

Tested by

no test coverage detected