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

Function start

python/graphscope/gsctl/commands/interactive/graph.py:178–194  ·  view source on GitHub ↗

Start current database service

()

Source from the content-addressed store, hash-verified

176
177@service.command
178def start(): # noqa: F811
179 """Start current database service"""
180 try:
181 current_context = get_current_context()
182 graph_identifier = current_context.context
183
184 status = list_service_status()
185 for s in status:
186 if s.graph_id == graph_identifier:
187 if s.status != "Running":
188 info(f"Starting service on graph {graph_identifier}...")
189 start_service(graph_identifier)
190 succ("Service restarted.")
191 else:
192 info("Service is running...")
193 except Exception as e:
194 err(f"Failed to start service: {str(e)}")
195
196
197@service.command

Callers

nothing calls this directly

Calls 6

get_current_contextFunction · 0.90
list_service_statusFunction · 0.90
infoFunction · 0.90
start_serviceFunction · 0.90
succFunction · 0.90
errFunction · 0.90

Tested by

no test coverage detected