{% from "macros.html" import badge, icon %} {% set sb = sparkbars(queues) %}
Queues
{% for qq in queues %}
{{ icon('queue', 'w-4 h-4') }} {{ qq.name }} {% if qq.paused %} paused {% endif %}
{% if sb.get(qq.name) %} {# Small multiple: every queue's last hour on ONE shared scale, so a glance at the sidebar compares queues honestly. Neutral ink for done, danger for failed - the one chart per queue, anywhere in the app. #} {% for b in sb[qq.name] %} {% if b.dh %}{% endif %} {% if b.fh %}{% endif %} {% endfor %} {% endif %} {# Always render all three so they never appear/disappear (the main source of jumping); tabular-nums keeps the digits aligned as the numbers change. #}
{{ qq.counts.active|compact }} active {{ qq.counts.wait|compact }} wait {{ qq.counts.failed|compact }} failed
{% else %}
none
{% endfor %}
Cluster
{{ icon('server', 'w-4 h-4') }} Workers