Files
Ilya Tolstenko a08ee1b0d8 fix: resolve bot hanging issues with improved architecture
- Fix blocking MQTT reconnect in callback thread that caused complete bot freeze
- Replace blocking queue.get() with non-blocking approach in asyncio context
- Add message queue size limit to prevent memory exhaustion
- Implement health monitoring system for MQTT and Telegram components
- Add retry logic with exponential backoff for Telegram API calls
- Add /status command for real-time bot health diagnostics
- Improve thread safety with proper locks for shared resources
- Add periodic health check task with automatic recovery triggers
- Enhance logging with thread names and better error tracking

This fixes the silent hanging issue where bot would stop processing
messages without any error logs and required manual restart.
2025-08-28 09:15:08 +03:00

12 KiB