From 92e2da1758456d6b189f1d2a1d85a90533929d86 Mon Sep 17 00:00:00 2001 From: Pandipipas Date: Sun, 31 May 2026 17:50:54 +0200 Subject: [PATCH] Augmented NODECG_STARTUP_TIMEOUT_MS --- .env.example | 2 +- scripts/doctor.mjs | 2 +- src/main/config/runtime-config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index ab530db..2366c00 100644 --- a/.env.example +++ b/.env.example @@ -12,7 +12,7 @@ SCOREKO_LOADING_ROUTE=dashboard/loading/main.html?standalone=true # Timing ELECTRON_LOAD_DELAY_MS=10000 -NODECG_STARTUP_TIMEOUT_MS=30000 +NODECG_STARTUP_TIMEOUT_MS=120000 NODECG_KILL_TIMEOUT_MS=2500 # Updates diff --git a/scripts/doctor.mjs b/scripts/doctor.mjs index e36d6f3..017d48b 100644 --- a/scripts/doctor.mjs +++ b/scripts/doctor.mjs @@ -75,7 +75,7 @@ function checkPortAvailability(port) { async function main() { const port = parsePort("NODECG_PORT", "9090"); parseIntInRange("ELECTRON_LOAD_DELAY_MS", 10000, 0, 600000); - parseIntInRange("NODECG_STARTUP_TIMEOUT_MS", 30000, 1000, 600000); + parseIntInRange("NODECG_STARTUP_TIMEOUT_MS", 120000, 1000, 600000); parseIntInRange("NODECG_KILL_TIMEOUT_MS", 2500, 0, 120000); checkNodecgInstall(); diff --git a/src/main/config/runtime-config.ts b/src/main/config/runtime-config.ts index 6ec2409..37468fd 100644 --- a/src/main/config/runtime-config.ts +++ b/src/main/config/runtime-config.ts @@ -33,7 +33,7 @@ export function getRuntimeConfig(): AppRuntimeConfig { mainDashboardRoute: getEnv("SCOREKO_DASHBOARD_ROUTE", "dashboard/scoreko-dev/main.html?standalone=true"), loadingDashboardRoute: getEnv("SCOREKO_LOADING_ROUTE", "dashboard/loading/main.html?standalone=true"), loadDelayMs: parseEnvIntInRange("ELECTRON_LOAD_DELAY_MS", 10000, 0, 600000), - startupTimeoutMs: parseEnvIntInRange("NODECG_STARTUP_TIMEOUT_MS", 30000, 1000, 600000), + startupTimeoutMs: parseEnvIntInRange("NODECG_STARTUP_TIMEOUT_MS", 120000, 1000, 600000), nodecgKillTimeoutMs: parseEnvIntInRange("NODECG_KILL_TIMEOUT_MS", 2500, 0, 120000), updatesEnabled: parseEnvBool("SCOREKO_UPDATES_ENABLED", true), updateApiUrl: parseOptionalHttpUrl("SCOREKO_UPDATE_API_URL"),