{% set total = job.lines | length %} {% set ended = job.count("saved") + job.count("failed") %}

{{ "Snapshots taken" if job.done else "Taking snapshots" }}

{% if job.label %}{{ job.label }}{% endif %} {% if job.done and job.failed %}
{% endif %} Take more
{%- for status in ("saved", "failed", "running") %}{% if job.count(status) %}{% endif %}{% endfor -%} {{ ended }} of {{ total }} done: {{ job.count("saved") }} saved, {{ job.count("failed") }} failed{% if not job.done %}, {{ job.count("running") }} running{% endif %} {% if job.done %}See the log in Activity{% endif %}
{% if job.error %}

{{ job.error }}

{% endif %} {% for line in job.lines.values() %} {% endfor %}
TargetStatusTimeSnapshot or error
{{ line.name }} {{ {"queued": "Queued", "running": "Running", "saved": "Saved", "failed": "Failed"}[line.status] }} {% if line.duration_s is not none %}{{ "%.1f"|format(line.duration_s) }} s{% endif %} {% if line.reference %}{{ line.reference }}{% elif line.error %}{{ line.error }}{% endif %}