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

Function gs_session

python/graphscope/tests/kubernetes/test_demo_script.py:119–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117
118@pytest.fixture
119def gs_session():
120 sess = graphscope.session(
121 num_workers=1,
122 k8s_image_registry=get_gs_registry_on_ci_env(),
123 k8s_image_tag=get_gs_tag_on_ci_env(),
124 k8s_coordinator_cpu=2,
125 k8s_coordinator_mem="4Gi",
126 k8s_vineyard_cpu=2,
127 k8s_vineyard_mem="512Mi",
128 k8s_engine_cpu=2,
129 k8s_engine_mem="4Gi",
130 vineyard_shared_mem="4Gi",
131 k8s_volumes=get_k8s_volumes(),
132 )
133 yield sess
134 sess.close()
135
136
137@pytest.fixture

Callers

nothing calls this directly

Calls 5

get_gs_tag_on_ci_envFunction · 0.70
get_k8s_volumesFunction · 0.70
closeMethod · 0.65
sessionMethod · 0.45

Tested by

no test coverage detected