{% extends base_template %} {# One wording per message. The badge and the flash of the same warning are the two constants of views.py, handed in as `shared_queue_warning` and `shared_queue_ack_warning`, so the page and the notice cannot drift apart. #} {% macro shared_badge(names, acking, name_them=false) %} {%- if names -%} ⚠ shared queue{% if name_them %}: {{ names | join(', ') }}{% endif %}{% if acking %} — messages deleted{% endif %} {%- endif -%} {% endmacro %} {% macro ack_unmatched_cell(on) %} {%- if on -%} on {%- else -%} — {%- endif -%} {% endmacro %} {# A recorded status while no watcher confirms its work: the status is what the watcher last wrote, and nothing keeps it current. #} {% macro unknown_status(last) -%} ? unknown {%- endmacro %} {% block content %}
⚠ {{ liveness_error }}
{% else %} {% if watcher_processes %}| Host | PID | Started (UTC) | Last mark (UTC) | Due (UTC) | State |
|---|---|---|---|---|---|
| {{ p.hostname }} | {{ p.pid }} | {{ p.started_display }} | {{ p.last_mark_display }} ({{ p.age_display }} ago) | {{ p.due_display }} | {% if p.state == 'alive' %} ● alive {% elif p.state == 'starting' %} ○ starting {% elif p.state == 'dead' %} ✕ dead {% elif p.state == 'stopped' %} ■ stopped {% endif %} |
No watcher process has recorded a heartbeat in the last day.
{% endif %} {% if liveness_state == 'unconfirmed' %}{{ unconfirmed_note }}
{% endif %} {% endif %}⚠ {{ conn_status_error }}
{% elif conn_statuses %}| conn_id | Status | Consumers | Broker consumers | Last reconcile | Last Error |
|---|---|---|---|---|---|
| {{ cs.conn_id }} | {% if mask_statuses %} {{ unknown_status(cs.status) }} {% elif cs.status == 'connected' %} ● connected {% elif cs.status == 'error' %} ✕ error {% elif cs.status == 'degraded' %} ○ degraded {% else %} ○ {{ cs.status }} {% endif %} | {{ cs.consumer_count }} | {% if cs.broker_consumer_count is none %} — {% elif cs.counts_mismatch %} ⚠ {{ cs.broker_consumer_count }} {% else %} {{ cs.broker_consumer_count }} {% endif %} | {% if cs.age_seconds is none %} — {% elif cs.is_stale %} ⚠ {{ cs.age_display }} ago {% else %} {{ cs.age_display }} ago {% endif %} | {{ cs.last_error or '—' }} |
No connections established yet.
{% endif %}⚠ {{ subscriptions_error }}
{% elif subscriptions %}| DAG | Queue(s) | conn_id | Cooldown | Ack unmatched | Source | Status | Last Error | Actions |
|---|---|---|---|---|---|---|---|---|
| {% set dag_missing = active_dag_ids is defined and active_dag_ids is not none and item.dag_id not in active_dag_ids %} {% if dag_missing %} {{ item.dag_id }} ⚠ dag not found {% else %} {{ item.dag_id }} {% endif %} | {% for q in item.queue_names %} {{ q }} {% endfor %} {{ shared_badge(item.shared_queue_names, item.shared_acking, name_them=true) }} | {{ item.conn_id }} | {% if item.cooldown %} {{ item.cooldown }}s {% else %} — {% endif %} | {{ ack_unmatched_cell(item.ack_unmatched) }} | {% if item.source == 'dag_file' %} dag_file {% else %} ui {% endif %} | {% if not item.enabled %} disabled {% elif mask_statuses %} {{ unknown_status(item.display_status) }} {% else %} {{ item.display_status }} {% endif %} | {{ item.last_error or '—' }} | Edit {% if item.source == 'ui' %} {% endif %} |
| {% set dag_missing = active_dag_ids is defined and active_dag_ids is not none and item.dag_id not in active_dag_ids %} {% if dag_missing %} {{ item.dag_id }} ⚠ dag not found {% else %} {{ item.dag_id }} {% endif %} | {{ item.queue_name }} {{ shared_badge(item.shared_queue_names, item.shared_acking) }} | {{ item.conn_id }} | {% if item.cooldown %} {{ item.cooldown }}s {% else %} — {% endif %} | {{ ack_unmatched_cell(item.ack_unmatched) }} | {% if item.source == 'dag_file' %} dag_file {% else %} ui {% endif %} | {% if not item.enabled %} disabled {% elif mask_statuses %} {{ unknown_status(item.consumer_status) }} {% elif item.consumer_status == 'listening' %} listening {% elif item.consumer_status == 'connecting' %} connecting {% elif item.consumer_status == 'error' %} error {% elif item.consumer_status == 'disconnected' %} ○ disconnected {% else %} {{ item.consumer_status }} {% endif %} | {{ item.last_error or '—' }} | Edit {% if item.source == 'ui' %} {% endif %} |
No subscriptions yet.
Create the first one
or add @rmq_trigger to a DAG file.