MCPcopy Create free account
hub / github.com/hashintel/hash / start_admin_server

Function start_admin_server

apps/hash-graph/src/subcommand/admin_server.rs:310–321  ·  view source on GitHub ↗

Spawns the admin server as a background task with lifecycle management.

(
    pool: PostgresStorePool,
    config: AdminConfig,
    lifecycle: &ServerLifecycle,
)

Source from the content-addressed store, hash-verified

308
309/// Spawns the admin server as a background task with lifecycle management.
310pub(crate) fn start_admin_server(
311 pool: PostgresStorePool,
312 config: AdminConfig,
313 lifecycle: &ServerLifecycle,
314) {
315 SnapshotEntry::install_error_stack_hook();
316
317 let shutdown = lifecycle.shutdown.clone();
318 lifecycle.spawn("Admin server", async move {
319 run_admin_server(pool, config, shutdown).await
320 });
321}
322
323/// Standalone `admin-server` subcommand entrypoint.
324#[expect(

Callers 2

serverFunction · 0.85
admin_serverFunction · 0.85

Calls 3

run_admin_serverFunction · 0.85
cloneMethod · 0.45
spawnMethod · 0.45

Tested by

no test coverage detected