mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-05-11 17:46:20 +02:00
Railway zero-downtime deploys start the new container before the old one receives SIGTERM. Both containers connect with the same session string simultaneously, triggering Telegram's AUTH_KEY_DUPLICATED which permanently invalidates the session. A 60s startup delay gives the old container time to disconnect gracefully. Configurable via TELEGRAM_STARTUP_DELAY_MS env.