Skip to main content

Module startup

Module startup 

Source
Expand description

Early-bind listener that answers health probes before bootstrap finishes.

bind_and_serve binds the TCP listener up front and serves a minimal router — 200 {"status":"starting"} on the health paths, 503 everywhere else — so platform health checks pass while migrations, content publish, and agent reconciliation run. Once bootstrap completes, the full router is swapped onto the same listener via EarlyServer::activate; the port is bound exactly once, so probes never hit an unbind/rebind window.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Structs§

EarlyServer

Functions§

bind_and_serve
starting_router