{% extends "admin/dj_celery_panel/base.html" %} {% load i18n static dcr_icons %} {% block extrahead %} {{ block.super }} {% endblock %} {% block panel_page_content %} {% include "admin/dj_celery_panel/_backend_info.html" %} {% if worker %} {% trans "Back to Workers" %}
{% dcr_icon "chart" %}

{{ worker.name }}

{% if worker.status == "online" %} {{ worker.status|capfirst }} {% else %} {{ worker.status|capfirst }} {% endif %}

{{ worker.hostname }}

{% trans "Process ID (PID)" %}
{{ worker.pid }}
{% trans "Pool Implementation" %}
{{ worker.pool }}
{% trans "Concurrency" %}
{{ worker.concurrency }}
{% trans "Prefetch Count" %}
{{ worker.prefetch_count }}
{% trans "Total Tasks Executed" %}
{{ worker.total_tasks_executed }}

{% trans "Task State" %}

{% trans "Active Tasks" %}
{% if worker.active_tasks %} {{ worker.active_tasks_count }}
{% trans "Show active tasks" %}
{{ worker.active_tasks_json }}
{% else %} {% trans "No active tasks" %} {% endif %}
{% trans "Reserved Tasks" %}
{% if worker.reserved_tasks %} {{ worker.reserved_tasks_count }}
{% trans "Show reserved tasks" %}
{{ worker.reserved_tasks_json }}
{% else %} {% trans "No reserved tasks" %} {% endif %}
{% trans "Scheduled Tasks" %}
{% if worker.scheduled_tasks %} {{ worker.scheduled_tasks_count }}
{% trans "Show scheduled tasks" %}
{{ worker.scheduled_tasks_json }}
{% else %} {% trans "No scheduled tasks" %} {% endif %}
{% trans "Registered Tasks" %}
{% if worker.registered_tasks %} {{ worker.registered_tasks|length }} {% trans "tasks" %}
{% trans "Show registered tasks" %}
    {% for task in worker.registered_tasks %}
  • {{ task }}
  • {% endfor %}
{% else %} {% trans "No registered tasks" %} {% endif %}

{% trans "Active Queues" %}

{% if worker.active_queues %} {% else %}

{% trans "No active queues" %}

{% endif %} {% if worker.processes or worker.rusage_json or worker.broker_json %}

{% trans "Diagnostics" %}

{% if worker.processes %}
{% trans "Worker Processes" %}
{% trans "Show process list" %} ({{ worker.processes|length }})
    {% for pid in worker.processes %}
  • {% trans "PID:" %} {{ pid }}
  • {% endfor %}
{% endif %} {% if worker.rusage_json %}
{% trans "Resource Usage" %}
{% trans "Show resource usage" %}
{{ worker.rusage_json }}
{% endif %} {% if worker.broker_json %}
{% trans "Broker Info" %}
{% trans "Show broker information" %}
{{ worker.broker_json }}
{% endif %}
{% endif %} {% else %}

{% trans "Worker Not Found" %}

{% trans "The requested worker could not be found." %}

{% endif %} {% endblock %} {% block panel_scripts %} {% endblock %}