{% extends "base.html" %} {% block title %}Scheduled Events{% endblock %} {% block head %} {{ super() if super }} {% endblock %} {% block content %}

Scheduled Events

Cron-style tasks — door maintenance, DB vacuum, log rotation, ad-hoc shell.
New event
{% if not rows %}
No events configured. Click New event to add one, or run the seeder to drop in defaults (TW2 maint, weekly VACUUM, log rotation).
{% else %}
{% for v in rows %} {% set ev = v.row %} {% endfor %}
NameHandlerSchedule Last runNext run Actions
{{ ev.name }} {% if not ev.is_enabled %}disabled{% endif %} {{ ev.handler_key }}
{{ v.handler_label }}
{{ v.schedule_human }} {% if ev.last_run_at %} {{ ev.last_status or '?' }} {{ ev.last_run_at.strftime('%Y-%m-%d %H:%M UTC') }} {% if ev.last_duration_ms %}({{ ev.last_duration_ms }} ms){% endif %} {% if ev.last_output %}
{{ ev.last_output }}
{% endif %} {% else %} never {% endif %}
{% if ev.is_enabled and v.next_run %} {{ v.next_run.strftime('%Y-%m-%d %H:%M UTC') }} {% else %} {% endif %}
{% if csrf_token %}{% endif %}
{% if csrf_token %}{% endif %}
{% endif %}
{% endblock %}