{% if error %}

{{ error }}

{% elif not missions %}

Aucune mission dans state.db.

{% else %} {% for m in missions %}
{{ m.name }} {{ m.status }} {% if m.counts.get('done') %}{{ m.counts.done }} done{% endif %} {% if m.counts.get('running') %}{{ m.counts.running }} running{% endif %} {% if m.counts.get('queued') %}{{ m.counts.queued }} queued{% endif %} {% if m.counts.get('degraded') %}{{ m.counts.degraded }} degraded{% endif %} {% if m.counts.get('error') %}{{ m.counts.error }} error{% endif %}
{% if m.auvs %}
Viser AUV: {% for auv_id in m.auvs %} {% endfor %}
{% endif %} {% for j in m.jobs %} {% if j.error_msg %} {% endif %} {% endfor %}
AUVSegmentStageStatusWorkerDuree
{{ j.auv_id }} {{ j.segment_label or '-' }} {{ j.stage }} {{ j.status }} {{ j.worker_host or '-' }} {% if j.started_at and j.finished_at %} {{ j.finished_at[11:16] if j.finished_at else '' }} {% elif j.started_at %} {{ j.started_at[11:16] }} → {% else %}-{% endif %}
{{ j.error_msg[:120] }}
{% endfor %} {% endif %}