mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-25 17:17:29 +01:00
Increase server shutdown timeout
Entire-Checkpoint: cf3b472471bd
This commit is contained in:
@@ -444,7 +444,7 @@ func (s *Server) Shutdown(ctx context.Context) {
|
|||||||
|
|
||||||
select {
|
select {
|
||||||
case <-done:
|
case <-done:
|
||||||
case <-time.After(10 * time.Second):
|
case <-time.After(60 * time.Second):
|
||||||
cclog.Warn("Shutdown deadline exceeded, forcing exit")
|
cclog.Warn("Shutdown deadline exceeded, forcing exit")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user