{% extends "paxalia/base.html" %} {% load static i18n %} {% block page_title %}{% trans "Queues" %}{% endblock %} {% block page_subtitle %}{% trans "Celery worker and task status" %}{% endblock %} {% block extra_css %} {% endblock %} {% block dashboard_content %}
{% trans "Worker integration" %}{% if queue_stats is None %}{% trans "Not configured" %}{% elif queue_stats.reachable %}{% trans "Connected" %}{% else %}{% trans "Configured · offline" %}{% endif %}{% trans "This page reports Celery workers; it does not create or control them." %}
{% if queue_stats is None %}
{% trans "Celery is not connected to the dashboard." %} {% trans "If this project uses Celery, set CELERY_APP_PATH to the existing application instance. If this project does not use Celery, this state is expected." %}
{% elif not queue_stats.reachable %}
{% trans "Celery is configured, but no worker responded to the inspect ping. Workers may be down or restarting." %}
{% else %}
{% trans "Workers" %} {{ queue_stats.workers|length }}
{% trans "Active tasks" %} {{ queue_stats.active_count }}
{% trans "Reserved tasks" %} {{ queue_stats.reserved_count }}
{% trans "Scheduled tasks" %} {{ queue_stats.scheduled_count }}

{% trans "Workers" %}

{% if queue_stats.workers %} {% for w in queue_stats.workers %} {% endfor %}
{% trans "Worker" %} {% trans "Active" %} {% trans "Reserved" %} {% trans "Scheduled" %} {% trans "Concurrency" %}
{{ w.name }} {{ w.active }} {{ w.reserved }} {{ w.scheduled }} {{ w.concurrency|default:"—" }}
{% else %}
{% trans "No workers found." %}
{% endif %}
{% endif %}
{% endblock %}