chore: full stack stability and migration fixes, plus react UI progress
This commit is contained in:
@@ -30,7 +30,15 @@ async fn main() -> anyhow::Result<()> {
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:8001").await?;
|
||||
tracing::info!("Control Plane API listening on http://0.0.0.0:8001");
|
||||
|
||||
axum::serve(listener, app).await?;
|
||||
let shutdown = async {
|
||||
tokio::signal::ctrl_c().await.ok();
|
||||
tracing::info!("Shutdown signal received, draining control plane connections...");
|
||||
};
|
||||
|
||||
axum::serve(listener, app)
|
||||
.with_graceful_shutdown(shutdown)
|
||||
.await?;
|
||||
|
||||
tracing::info!("Control Plane shut down cleanly.");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user