{# Run history for this project. Read straight out of ``.kptn/ui.db`` on every request, which is what makes this page durable rather than remembered: a run recorded by a server that has since restarted -- or by a detached worker while no server was up at all -- is still here. Newest first, in the order the store hands them over. This template must not re-sort: the ordering is a property of the query (``created_at DESC, run_id DESC``), and a second opinion here would be a second place for it to be wrong. Each row carries ``data-run-id`` so the order is assertable, and links to both the run's console and its raw log. #} {% extends "base.html" %} {% block title %}Runs - {{ project.display_name }} - kptn{% endblock %} {% block content %} {% from "_warning_summary.html" import warning_badge %}

Run history

{% if runs %}{{ runs | length }} shown, newest first{% endif %}
{% if runs %}
    {% for entry in runs %}
  1. {{ entry.run.status }} {{ entry.run.run_id }} {% if entry.run.profile %} profile {{ entry.run.profile }} {% else %} no profile {% endif %} ran {{ entry.counters.tasks }} skipped {{ entry.counters.skipped }} failed {{ entry.counters.failed }} {% if entry.run.current_task %} last task {{ entry.run.current_task }} {% endif %} {% if entry.run.exit_code is not none %} exit {{ entry.run.exit_code }} {% endif %} {{ warning_badge(entry.warnings) }} log
  2. {% endfor %}
{% else %}

No runs recorded yet. Press Run to start one.

{% endif %}
{% endblock %}