tududi/backend/tests/unit/services
Chris 828b5ebc0d
fix: prevent Telegram polling errors from blocking container startup (#989) (#1019)
This fix addresses the issue where the container gets stuck in an endless
loop of Telegram connection errors when the bot is configured but Telegram
is unreachable during startup.

Changes:
- Add 10-second startup delay before initializing Telegram polling to allow
  the system to settle
- Implement exponential backoff (5s to 5min) when Telegram connection fails
- Add rate-limited error logging (max once per minute per user) to reduce
  log spam and prevent event loop blocking
- Track error state per user to manage backoff independently
- Auto-reset error state on successful connection
- Update tests to account for new error state tracking

Fixes #989
2026-04-13 20:44:27 +03:00
..
applyPerms.test.js Add URL detection to inbox processing service (#942) 2026-03-14 08:43:41 +02:00
functional-services.test.js Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
inboxProcessingService.test.js Add URL detection to inbox processing service (#942) 2026-03-14 08:43:41 +02:00
permissionsService.test.js Add comprehensive LLM development documentation (#939) 2026-03-14 02:54:59 +02:00
rolesService.test.js Add comprehensive LLM development documentation (#939) 2026-03-14 02:54:59 +02:00
telegramAuth.test.js Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
telegramPoller.test.js fix: prevent Telegram polling errors from blocking container startup (#989) (#1019) 2026-04-13 20:44:27 +03:00
userService.test.js Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00