Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

Server startup and shutdown lifecycle hooks.

The closed cognee-http-cloud crate provides its own bootstrap that seeds the principals / users / tenants tables; OSS keeps the sync-registry sweep + pipeline-registry shutdown that are DB-free.

Enums§

LifecycleError
Errors that can occur during server lifecycle transitions.

Functions§

default_user_id
Convenience accessor — for callers that need the well-known IDs.
on_shutdown
Called on graceful shutdown (SIGTERM / SIGINT).
on_startup
Called once before the router is handed to axum::serve.