{% extends "base.html" %} {% block content %}

Scheduled Jobs

Automatically collect MySQL diagnostics on a schedule

{% if crons %}
{% for item in crons %} {% endfor %}
Name Hosts Interval Status Last Run Next Run Runs Actions
{{ item.cron.name }}
{{ item.cron.id[:8] }}
{% for label in item.host_labels[:3] %} {{ label }} {% endfor %} {% if item.host_count > 3 %} +{{ item.host_count - 3 }} more {% endif %}
{% if item.cron.interval_minutes < 60 %} {{ item.cron.interval_minutes }}m {% elif item.cron.interval_minutes == 60 %} 1h {% elif item.cron.interval_minutes % 60 == 0 %} {{ item.cron.interval_minutes // 60 }}h {% else %} {{ item.cron.interval_minutes // 60 }}h {{ item.cron.interval_minutes % 60 }}m {% endif %} {% if item.cron.enabled %} Active {% else %} Paused {% endif %} {% if item.cron.last_run_at %}
{{ item.cron.last_run_at.strftime('%m/%d %H:%M') }}
{% if item.cron.last_job_id %} View job → {% endif %} {% else %} Never {% endif %}
{% if item.cron.enabled and item.cron.next_run_at %}
{{ item.cron.next_run_at.strftime('%m/%d %H:%M') }}
{% else %} {% endif %}
{{ item.cron.run_count or 0 }}
{% else %}

No Scheduled Jobs

Create a scheduled job to automatically collect MySQL diagnostics at regular intervals.

{% endif %}

How Scheduled Jobs Work

1
Configure

Choose hosts, set interval (e.g., every 30 min), and optional settings.

2
Automatic Collection

MASC runs in the background and collects data at scheduled times.

3
Review & Compare

View jobs in history, compare snapshots, detect regressions over time.

New Scheduled Job

{% for host in hosts %} {% endfor %}

Custom: minutes (min: 2)
{% endblock %}