The broker keeps the latest progress of each phase of requests that build (`runs::Runs`), from the build on. A request's page shows a full-width bar for the build and a row for each node in its region, and the main page gets a region of its own listing running requests with a bar each, both kept current by the page's event stream. A request's page reads the audit log again only when the queue changes or a run starts or ends, not with every bit of progress. The `finished` and `failed` audit events keep how each phase ended, which the request's page shows afterwards. Refs #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.3 KiB
HTML
25 lines
1.3 KiB
HTML
{%- import "macros.html" as m -%}
|
|
<h2>Progress</h2>
|
|
<p class="meta">Running for {{ self::elapsed(run.elapsed()) }}</p>
|
|
{% for phase in run.overall() %}
|
|
<div class="phase {{ self::state_class(phase) }}">
|
|
<p class="phase-title"><strong>{{ phase.title() }}</strong> <span class="meta">{{ self::elapsed(phase.elapsed) }}</span></p>
|
|
{% call m::meter(phase) %}{% endcall %}
|
|
{% let counted = phase.counted(false) %}
|
|
{% if !counted.is_empty() %}<p class="meta">{{ counted }}</p>{% endif %}
|
|
{% if !phase.counts.current.is_empty() %}<p class="meta current">Now: {% for name in phase.counts.current %}<code>{{ name }}</code>{% if !loop.last %}, {% endif %}{% endfor %}</p>{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
{% let nodes = run.nodes() %}
|
|
{% if !nodes.is_empty() %}
|
|
<div class="scroll"><table class="nodes">
|
|
<thead><tr><th>Node</th><th>State</th><th>Copy</th><th>Time</th></tr></thead>
|
|
<tbody>
|
|
{% for row in nodes %}
|
|
<tr><td><code>{{ row.node }}</code></td><td><span class="outcome {{ row.tone }}">{{ row.state }}</span></td>
|
|
<td class="copy">{% if let Some(copy) = row.copy %}{% call m::meter(copy) %}{% endcall %}{% let counted = copy.counted(false) %}{% if !counted.is_empty() %}<span class="meta">{{ counted }}</span>{% endif %}{% endif %}</td>
|
|
<td>{{ self::elapsed(row.latest.elapsed) }}</td></tr>
|
|
{% endfor %}
|
|
</tbody></table></div>
|
|
{% endif %}
|