Здоровье коллектора {{ collector_health.current_status_label }} {% if collector_health.load_level != 'ok' %} {{ collector_health.load_label }} {% endif %}
Аккаунты
{{ collector_health.available_accounts_now }} доступно сейчас
{{ collector_health.connected_accounts }} подключено
{% if collector_health.session_degraded_accounts %}
{{ collector_health.session_degraded_accounts }} требуют ключ
{% endif %}
Очередь
{{ collector_health.queue_pending_count }} ожидает
{{ collector_health.current_status_detail }}
Нагрузка
{{ collector_health.active_unfiltered_channels }} активных каналов
{{ collector_health.capacity_label }}
Flood Wait
{{ collector_health.flooded_accounts_count }} заблокировано
{% if collector_health.next_available_label %} {% set _secs = collector_health.retry_after_sec %}
Раньше всего: {{ collector_health.next_available_label }} {%- if _secs and _secs >= 60 %} {% set _h = (_secs // 3600) | int %} {% set _m = ((_secs % 3600) // 60) | int %} ({% if _h > 0 %}{{ _h }} ч {% endif %}{{ _m }} мин) {%- endif %}
{% endif %}
{% if collector_health.is_running and collector_health.running_count and collector_health.running_count > 1 %}

Сейчас собирается: {{ collector_health.running_count }} каналов параллельно; остальные задачи ждут.

{% elif collector_health.is_running and collector_health.running_task_title %}

Сейчас собирается: {{ collector_health.running_task_title }}, собрано {{ collector_health.running_task_messages_collected }} сообщений; остальные задачи ждут.

{% endif %} {% if collector_health.state == 'collector_stuck' %}

Почему сейчас не собираем: текущая задача сбора{% if collector_health.running_task_title %} ({{ collector_health.running_task_title }}){% endif %} давно не двигается с места, поэтому остальные задачи ждут в очереди.

Как починить: перезапустите процесс с воркером и проверьте, что очередь снова разбирается.

{% elif collector_health.state == 'worker_down' %}

Почему сейчас не собираем: веб-процесс принимает задачи и пишет их в БД, но Telegram-коннекты держит отдельный воркер-процесс — он сейчас не запущен (нет свежего heartbeat в runtime_snapshots). Задачи из collection_tasks копятся в статусе pending, но никто их не исполняет.

{% if collector_health.worker_reason %}

Причина: {{ collector_health.worker_reason }}

{% endif %}

Как починить: запустите воркер во втором терминале — он подхватит все накопившиеся задачи автоматически:

python -m src.main worker
{% endif %} {% if collector_health.state == 'session_degraded' %}

Почему сейчас не собираем: активные Telegram-сессии сохранены, но не расшифровываются текущим SESSION_ENCRYPTION_KEY. Live-операции заблокированы до восстановления ключа или повторного входа.

{% endif %} {% if collector_health.state == 'all_flooded' and collector_health.flooded_accounts %}

Почему сейчас не собираем: доступных аккаунтов нет или их недостаточно. Flood Wait активен для: {% for item in collector_health.flooded_accounts %} {{ item.phone }}{% if not loop.last %}, {% endif %} {% endfor %}

{% endif %} {% if collector_health.recommendations %}

Что делать:

{% endif %} {% if collector_health.recent_unavailability_events %}

Недавние события недоступности:

{% endif %}