Skip to content

## Parent issue #524

Description

@Lexus2016

Parent issue

#466 — Telegram Gateway Unreliable

This slice

Add a session-scoped circuit-breaker around Telegram send/poll operations: after N consecutive connection failures, mark Telegram unhealthy and skip attempts for T seconds, preventing retry loops and cascading log spam.

Acceptance criteria

  • Failure counter and cooldown state in Telegram adapter.
  • Configurable N and T via config.yaml.
  • Cooldown respected by both polling and send paths.
  • Health state exposed for introspection.
  • Regression tests with mocked ConnectError.

Estimated effort

Easy (< 4h)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-splitWanted, but exceeds one cycle — needs decompositionrejectedNot accepted by evolution — see closing comment

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions