mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
make shutdown grace periods configurable
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
bd6d4bc58f
commit
ffe3b0faf2
5 files changed
+39
-6
No files matched your search
+2
-1
@@ -122,7 +122,8 @@ async fn handle_shutdown(server: Arc<Server>, tx: Sender<()>, handle: axum_serve
|
||||
error!("failed sending shutdown transaction to channel: {e}");
|
||||
}
|
||||
|
||||
let timeout = Duration::from_secs(36);
|
||||
let timeout = server.config.client_shutdown_timeout;
|
||||
let timeout = Duration::from_secs(timeout);
|
||||
debug!(
|
||||
?timeout,
|
||||
handle_active = ?server.metrics.requests_handle_active.load(Ordering::Relaxed),
|
||||
|
||||
Reference in new issue
Block a user