{% from "macros.html" import badge, icon, spark %} {% 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. #} {{ spark(sb[qq.name], qq.name ~ ' activity, last hour', 'mt-1.5 w-full') }} {% 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