{% extends "admin/base.html" %} {% block title %}Logs des Tâches{% endblock %} {% block page_title %}Logs des Tâches{% endblock %} {% block content %}

Historique des Exécutions

Retour aux Tâches
{% for log in logs.items %} {% if log.error_message or log.output_log %} {% endif %} {% endfor %}
Date Tâche Statut Durée Serveur Détails
{{ log.started_at.strftime('%d/%m/%Y %H:%M:%S') }} {{ log.task_name }} {% if log.status == 'success' %} Succès {% elif log.status == 'failed' %} Échec {% else %} En cours {% endif %} {% if log.completed_at %} {% set duration = (log.completed_at - log.started_at).total_seconds() // 60 %} {% if duration > 0 %} {{ duration|int }} min {% else %} {{ ((log.completed_at - log.started_at).total_seconds())|int }} s {% endif %} {% else %} - {% endif %} {{ log.server_hostname or 'N/A' }}
PID: {{ log.process_id or 'N/A' }}
{% if log.error_message %}

{{ log.error_message[:100] }}

{% elif log.output_log %}

{{ log.output_log[:100] }}

{% else %} - {% endif %}
{% if log.error_message %}

Erreur:

{{ log.error_message }}
{% endif %} {% if log.output_log %}

Sortie:

{{ log.output_log }}
{% endif %}
{% if logs.pages > 1 %}

Page {{ logs.page }} sur {{ logs.pages }}

{% if logs.has_prev %} Précédent {% endif %} {% if logs.has_next %} Suivant {% endif %}
{% endif %}
{% endblock %}