{% extends "dashboard/base.html" %} {% block title %}MQ Dashboard - {{ store_name }}{% endblock %} {% block content %}
Job Store: {{ store_name }}
Capacity

{{ capacity_stats.current_jobs }} / {% if capacity_stats.max_capacity %} {{ capacity_stats.max_capacity }} {% else %} Unlimited {% endif %}

{% if capacity_stats.max_capacity %}
{% set capacity_percentage = (capacity_stats.current_jobs / capacity_stats.max_capacity) * 100 %} {% if capacity_percentage > 90 %} {% set bar_class = "bg-danger" %} {% elif capacity_percentage > 70 %} {% set bar_class = "bg-warning" %} {% else %} {% set bar_class = "bg-success" %} {% endif %}
{% endif %}
{{ status_counts.pending }}

Pending

{{ status_counts.processing }}

Processing

{{ status_counts.completed }}

Completed

{{ status_counts.failed }}

Failed

{% if status_filter or search_field or search_query or sort_by or sort_order != 'desc' %} {% endif %}
{% if jobs %} {% for job in jobs %} {% endfor %} {% else %} {% endif %}
ID Status Priority Next Run Payload Actions
{{ job._id }} {{ job.status }} {{ job.priority }} {% if job.next_run_at %} {{ job.next_run_at.strftime('%Y-%m-%d %H:%M:%S') }} {% else %} - {% endif %}
{{ job.payload | string | truncate(80) }}
No jobs found
{% if jobs %}
{{ total }} total jobs
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}