fix(gateway): restart on retryable startup failures (#1517)

This commit is contained in:
JP Lew 2026-03-16 17:56:31 +05:30 committed by GitHub
parent dfe72b9d97
commit 17e87478d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 149 additions and 3 deletions

View file

@ -265,6 +265,8 @@ class TelegramAdapter(BasePlatformAdapter):
release_scoped_lock("telegram-bot-token", self._token_lock_identity)
except Exception:
pass
message = f"Telegram startup failed: {e}"
self._set_fatal_error("telegram_connect_error", message, retryable=True)
logger.error("[%s] Failed to connect to Telegram: %s", self.name, e, exc_info=True)
return False