{% from "macros.html" import badge, icon, job_chip, empty_state with context %} {% if workers %}
| Worker | {% if multi %}Queue | {% endif %}Running | Done | Failed | Uptime |
|---|---|---|---|---|---|
|
{% if w.state == 'stopping' %}
draining
{% else %}
live
{% endif %}
{{ w.host }}
pid {{ w.pid }}
×{{ w.concurrency }}
{% if w.state == 'stopping' %}draining{% endif %}
|
{% if multi %}{{ w.queue }} | {% endif %}
{% if w.current %}
{% for jid in w.current %}{{ job_chip(w.queue, jid) }}{% endfor %}
{{ w.current|length }}/{{ w.concurrency }}
{% else %}idle{% endif %}
|
{{ w.processed|compact }} | {{ w.failed|compact }} | {{ w.started|uptime }} |
| Worker | {% if multi %}Queue | {% endif %}Status | Done | Failed | Stopped |
|---|---|---|---|---|---|
|
{{ d.host }}
pid {{ d.pid }}
|
{% if multi %}{{ d.queue }} | {% endif %}
{% if d.reason == 'lost' %}
lost · no heartbeat
{% else %}
stopped
{% endif %}
{% if d.current %}
while running
{% for jid in d.current %}{{ job_chip(d.queue, jid) }}{% endfor %}
{% endif %}
|
{{ d.processed|compact }} | {{ d.failed|compact }} | {{ d.at|uptime }} ago |