mirror of
https://github.com/telemt/telemt.git
synced 2026-10-07 09:55:57 +03:00
Redesign runtime w/ include-aware config + Module Split + Listener Lifecycle + Atomic Reload
This commit is contained in:
@@ -95,7 +95,7 @@ async fn perform_shutdown(
|
||||
let shutdown_started_at = Instant::now();
|
||||
info!(signal = %signal, "Received shutdown signal");
|
||||
|
||||
reload_supervisor.quiesce().await;
|
||||
let listener_manager = reload_supervisor.quiesce().await;
|
||||
let runtime = active_runtime.load_full();
|
||||
let stats = runtime.stats.as_ref();
|
||||
|
||||
@@ -108,6 +108,10 @@ async fn perform_shutdown(
|
||||
let uptime_secs = process_started_at.elapsed().as_secs();
|
||||
info!("Uptime: {}", format_uptime(uptime_secs));
|
||||
|
||||
if let Err(error) = listener_manager.lock().await.shutdown().await {
|
||||
warn!(error = %error, "Failed to stop one or more listener tasks cleanly");
|
||||
}
|
||||
|
||||
// Graceful ME pool shutdown
|
||||
runtime.stop_sessions().await;
|
||||
runtime.stop_background_tasks().await;
|
||||
|
||||
Reference in New Issue
Block a user