{% extends "admin/base.html" %} {% block title %}Tâches Planifiées{% endblock %} {% block page_title %}Tâches Planifiées{% endblock %} {% block content %}
Total Tâches
{{ stats.total }}
Actives
{{ stats.active }}
En Attente
{{ stats.pending }}
Échecs
{{ stats.failed }}
| Nom | Planning | Statut | Dernier Run | Prochain Run | Actions |
|---|---|---|---|---|---|
|
{{ task.name }} {{ task.description }} {% if task.should_run() %} À exécuter! {% endif %} |
{% if task.schedule_type == 'daily' %} Quotidien à {{ task.schedule_time.strftime('%H:%M') }} {% elif task.schedule_type == 'hourly' %} Toutes les heures {% else %} Tous les {{ task.interval_minutes }} min {% endif %} | {% if task.last_status == 'success' %} Succès {% elif task.last_status == 'failed' %} Échec {% elif task.last_status == 'running' %} En cours {% else %} En attente {% endif %} |
{% if task.last_run_at %}
{{ task.last_run_at.strftime('%d/%m/%Y %H:%M') }}
{{ task.run_count }} runs {% else %} Jamais {% endif %} |
{% if task.next_run_at %} {{ task.next_run_at.strftime('%d/%m/%Y %H:%M') }} {% else %} Non calculé {% endif %} |
|
|
Erreur: {{ task.last_error[:200] }}{% if task.last_error|length > 200 %}...{% endif %} |
|||||
Ce système remplace les cron jobs traditionnels. Les tâches sont stockées en base de données et peuvent être exécutées manuellement ou automatiquement. Si le serveur redémarre, les tâches manquées seront automatiquement rattrapées.