From 9a0b8159379766b2f19d27546fc62640cd3a15ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Tue, 6 Oct 2026 10:42:08 +0500 Subject: [PATCH] Cover initial SQUID import and bot creation in startup budget --- changelog.d/20261006-squid-first-start-timeout.md | 2 +- crates/coa-core/src/driver.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog.d/20261006-squid-first-start-timeout.md b/changelog.d/20261006-squid-first-start-timeout.md index f313b6e..8d8f7b3 100644 --- a/changelog.d/20261006-squid-first-start-timeout.md +++ b/changelog.d/20261006-squid-first-start-timeout.md @@ -4,4 +4,4 @@ type: fixed audience: admins title: Large SQUID database imports have more time to finish on first startup --- -The Manager allows additional startup time when SQUID Playerbots is enabled, so its initial database import is not interrupted by the normal startup deadline. +The Manager allows up to 45 minutes when SQUID Playerbots is enabled, covering its initial database import and bot creation. Ordinary server startup and shutdown keep their existing deadlines. diff --git a/crates/coa-core/src/driver.rs b/crates/coa-core/src/driver.rs index 4979621..b3c8a1e 100644 --- a/crates/coa-core/src/driver.rs +++ b/crates/coa-core/src/driver.rs @@ -33,7 +33,7 @@ impl Verb { fn timeout(self, root: &Path) -> Duration { match self { - Verb::StartAll | Verb::StartWorld if squid_enabled(root) => Duration::from_secs(1800), + Verb::StartAll | Verb::StartWorld if squid_enabled(root) => Duration::from_secs(2700), Verb::StartAll | Verb::StartWorld => Duration::from_secs(420), Verb::StartMysql => Duration::from_secs(120), Verb::StopAll => Duration::from_secs(240), @@ -245,7 +245,7 @@ mod tests { let modules = folder.path().join("Core/configs/modules"); std::fs::create_dir_all(&modules).unwrap(); std::fs::write(modules.join("playerbots.conf.dist"), "AiPlayerbot.Enabled = 1\n").unwrap(); - assert_eq!(Verb::StartAll.timeout(folder.path()), Duration::from_secs(1800)); + assert_eq!(Verb::StartAll.timeout(folder.path()), Duration::from_secs(2700)); assert_eq!(Verb::StopAll.timeout(folder.path()), Duration::from_secs(240)); std::fs::write(modules.join("playerbots.conf"), "AiPlayerbot.Enabled = 0\n").unwrap(); assert_eq!(Verb::StartWorld.timeout(folder.path()), Duration::from_secs(420));