infra/stacks/uptime-kuma/modules
Viktor Barzin e6699ed20b
All checks were successful
ci/woodpecker/push/default Pipeline was successful
uptime-kuma: retry Kuma login in monitor-sync jobs (intermittent socket.io timeout)
The internal + external monitor-sync CronJobs intermittently failed with socketio.exceptions.TimeoutError on api.login(), firing JobFailed -> Slack noise (and leaving monitor sync stale). Kuma 2.3.2 itself is healthy (1/1, 30m CPU); its single Node event loop just briefly stalls under ~300 monitors so the socket.io login handshake occasionally exceeds the client timeout. Wrap connect+login in a 5-attempt / 15s-backoff retry (disconnecting the half-open client between tries) so a transient stall no longer fails the whole job. Applied to both sync scripts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 20:54:14 +00:00
..
uptime-kuma uptime-kuma: retry Kuma login in monitor-sync jobs (intermittent socket.io timeout) 2026-06-13 20:54:14 +00:00