{% extends "base.html" %} {# Info tooltip macro #} {% macro info_tooltip(text, position='right') %}
{% endmacro %} {% block content %}

Collection Jobs

View and manage diagnostic collection jobs

New Collection
{% if jobs %}
{% for item in jobs %} {% endfor %}
Job Hosts Included{{ info_tooltip("MySQL hosts that were selected for this collection job.") }} Created Status{{ info_tooltip("Pending: Queued. Running: Active collection. Completed: All hosts done. Failed: One or more hosts failed.") }} Progress{{ info_tooltip("✓ = successful collection. ✗ = failed (connection error, timeout, etc).") }} Actions
{% if item.job.name %}
{{ item.job.name }}
{{ item.job.id[:6] }}
{% else %}
{{ item.job.id[:6] }}
{% endif %}
{% for label in item.host_labels %} {{ label }} {% endfor %}
{{ item.job.created_at.strftime('%Y-%m-%d %H:%M:%S') }} {% if item.job.status.value == 'pending' %} Pending {% elif item.job.status.value == 'running' %} Running {% elif item.job.status.value == 'completed' %} Completed {% elif item.job.status.value == 'failed' %} Failed {% endif %}
{% if item.completed_count > 0 %} {{ item.completed_count }} {% endif %} {% if item.failed_count > 0 %} {{ item.failed_count }} {% endif %} {% if item.completed_count == 0 and item.failed_count == 0 %} {% endif %}
View {% if item.job.status.value in ['completed', 'failed'] %}
{% endif %}
{% else %}

No Jobs Yet

Start your first diagnostic collection to see jobs here

Create First Job
{% endif %}
{% if total_pages > 1 %}
Showing {{ (page - 1) * per_page + 1 }} - {{ [page * per_page, total_jobs] | min }} of {{ total_jobs }} jobs
{% if page > 1 %} ← Previous {% endif %}
{% for p in range(1, total_pages + 1) %} {% if p == page %} {{ p }} {% elif p == 1 or p == total_pages or (p >= page - 2 and p <= page + 2) %} {{ p }} {% elif p == page - 3 or p == page + 3 %} ... {% endif %} {% endfor %}
{% if page < total_pages %} Next → {% endif %}
{% endif %}
{% endblock %}