{% extends base_template %} {% block content %}
{# Flash messages #} {% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endwith %} {# --- Connections block --- #}

Connections

{% if conn_statuses %} {% for cs in conn_statuses %} {% endfor %}
conn_idStatusConsumersLast Error
{{ cs.conn_id }} {% if cs.status == 'connected' %} ● connected {% elif cs.status == 'error' %} ✕ error {% elif cs.status == 'connecting' %} ○ connecting {% else %} ○ {{ cs.status }} {% endif %} {{ cs.consumer_count }} {{ cs.last_error or '—' }}
{% else %}

No connections established yet.

{% endif %}
{# --- Subscriptions table --- #}
{% if subscriptions %} {% for item in subscriptions %} {% if item.is_group is defined and item.is_group %} {# ---- Grouped row (multiple queues, shared cooldown) ---- #} {% else %} {# ---- Single-queue row (no group_key) ---- #} {% endif %} {% endfor %}
DAG Queue(s) conn_id Cooldown Source Status Last Error Actions
{{ item.dag_id }} {% for q in item.queue_names %} {{ q }} {% endfor %} {{ item.conn_id }} {% if item.cooldown %} {{ item.cooldown }}s {% else %} — {% endif %} {% if item.source == 'dag_file' %} dag_file {% else %} ui {% endif %} {% if not item.enabled %} disabled {% else %} {{ item.display_status }} {% endif %} {{ item.last_error or '—' }}
Edit {% if item.source == 'ui' %}
{% endif %}
{{ item.dag_id }} {{ item.queue_name }} {{ item.conn_id }} {% if item.cooldown %} {{ item.cooldown }}s {% else %} — {% endif %} {% if item.source == 'dag_file' %} dag_file {% else %} ui {% endif %} {% if not item.enabled %} disabled {% elif item.consumer_status == 'listening' %} listening {% elif item.consumer_status == 'connecting' %} connecting {% elif item.consumer_status == 'error' %} error {% else %} {{ item.consumer_status }} {% endif %} {{ item.last_error or '—' }}
Edit {% if item.source == 'ui' %}
{% endif %}
{% else %}

No subscriptions yet. Create the first one or add @rmq_trigger to a DAG file.

{% endif %}
{% endblock %}