{% extends "base.html" %} {% block title %}{{ job.name }} — CronHub{% endblock %} {% block content %}
Retour au dashboard

{{ job.name }}

{% if job.description %}

{{ job.description }}

{% endif %}
Modifier

Schedule

{{ job.schedule }}

Dernière exécution

{% if job.last_run %} {{ job.last_run | replace("T", " ") | truncate(19, True, '') }} {% else %} Jamais {% endif %}

Dernier statut

{% if job.last_status == 'success' %} Succès {% elif job.last_status == 'failed' %} Échec {% elif job.last_status == 'running' %} En cours {% else %} {% endif %}

Commande

{{ job.command }}

Historique d'exécution (20 dernières)

{% if logs %}
{% for log in logs %}
{% if log.status == 'success' %} OK {% elif log.status == 'failed' %} Erreur {% elif log.status == 'running' %} En cours {% endif %}
{{ log.started_at | replace("T", " ") | truncate(19, True, '') }} {% if log.ended_at %} → {% set dur = log.ended_at | replace("T", " ") %}{{ log.ended_at | replace("T", " ") | truncate(19, True, '') }} {% endif %}
{% if log.exit_code is not none %} exit: {{ log.exit_code }} {% endif %}
{% if log.stdout %}

STDOUT

{{ log.stdout }}
{% endif %} {% if log.stderr %}

STDERR

{{ log.stderr }}
{% endif %} {% if not log.stdout and not log.stderr %}

Pas de sortie

{% endif %}
{% endfor %}
{% else %}

Aucune exécution pour ce job

{% endif %}
{% endblock %}