{% extends "base.html" %} {% block title %}Historique — {{ job.name }}{% endblock %} {% block content %}
← Dashboard

{{ job.name }}

{{ job.type }} {{ job.cron_expr }}

Historique des exécutions ({{ runs | length }} entrées)

{% if not runs %}
Aucune exécution enregistrée pour ce job.
{% else %}
{% for run in runs %} {% endfor %}
Début Fin Durée Statut Archive Taille Log Action
{{ run.started_at.strftime('%d/%m/%Y %H:%M:%S') if run.started_at else '—' }} {{ run.finished_at.strftime('%H:%M:%S') if run.finished_at else '—' }} {% if run.duration_seconds is not none %} {% if run.duration_seconds >= 60 %} {{ (run.duration_seconds // 60) }}min {{ run.duration_seconds % 60 }}s {% else %} {{ run.duration_seconds }}s {% endif %} {% else %} — {% endif %} {% if run.status == 'success' %} ✓ succès {% elif run.status == 'error' %} ✗ erreur {% elif run.status == 'running' %} ⟳ en cours {% else %} {{ run.status or '—' }} {% endif %} {{ run.archive_name or '—' }} {{ run.size_human if run.size_bytes else '—' }} {% if run.log_text %}
Voir
{{ run.log_text }}
{% else %} {% endif %}
{% if run.status == 'success' and run.archive_name %}
↩ Restaurer {% set destinations = job.destination_id and [job.destination] or [] %} {% if destinations %}
{% endif %}
{% else %} {% endif %}
{% endif %}
{% endblock %}