- 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.
12 KiB
12 KiB