{%- extends 'base.html' -%} {%- block content -%}

{{ _('Check queue') }}

{{ _('Live view of what the workers are doing right now and what is waiting in line.') }}
{{ _('Workers') }}
{{ snapshot.worker_count }}
{{ _('Running now') }}
{{ snapshot.running_count }}
{{ _('Queued') }}
{{ snapshot.queued_count }}

{{ _('Workers & queue') }}

{# Worker slot rows — JS replaces this with one row per FETCH_WORKERS slot. #} {% for w in snapshot.running %} {% endfor %} {% for idle_idx in range(snapshot.running|length, snapshot.worker_count) %} {% endfor %} {% if snapshot.queued %} {% for w in snapshot.queued %} {% endfor %} {% elif snapshot.worker_count == 0 %} {% endif %}
# {{ _('Watch') }} {{ _('Elapsed') }} {{ _('Status') }}
{{ _('Worker %(num)s', num=loop.index) }} {% if w.gone %} {{ _('Watch no longer exists') }} {% else %} {{ w.title or w.url }} {% if w.title and w.url %}
{{ w.url }}{% endif %} {% endif %}
{{ _('running') }} {{ _('cancel') }}
{{ _('Worker %(num)s', num=idle_idx + 1) }} {{ _('— idle') }} {{ _('idle') }}
{{ w.position + 1 }} {% if w.gone %} {{ _('Watch no longer exists') }} {% else %} {{ w.title or w.url }} {% if w.title and w.url %}
{{ w.url }}{% endif %} {% endif %}
{{ w.priority_label }}
{{ _('No workers configured (FETCH_WORKERS=0) and queue is empty') }}
{% if pagination and pagination.total > pagination.per_page %}
{{ pagination.info }} {{ pagination.links }}
{% endif %}
{{ _('Waiting for new pages to check…') }}
{%- endblock -%}