{% extends "htmx/form_base.html" %} {% block form %} {# hx-target/include/swap are inherited by every hx-post button below #}
{# Header #}

Compute Management

Updated {{ last_updated|time:"H:i:s" }} · refreshes every {{ component.refresh_interval }}
{# Cancel / shutdown / mark-stale results #} {% include "htmx/partials/action_alert.html" %} {# Catalogs #} {% include "core/basic_elements/catalogs_card.html" %} {# Needs Attention #} {% include "core/basic_elements/alerts_card.html" %} {# Activity Timeline -- figures are shared with the WorkItem data explorer report #}
Activity Timeline
{{ timeline_count }} work item{{ timeline_count|pluralize }} active in the last {{ component.timeline_period }} {% if timeline_count >= timeline_limit %}(limited to the most recent {{ timeline_limit }}){% endif %}
{% for key, label in timeline_views %} {% endfor %}
{% for period in timeline_periods %} {% endfor %}
{% if timeline_figure %} {% htmx_plotly_figure timeline_figure show_modebar=False %} {% else %}
No work item activity in the last {{ component.timeline_period }}
{% endif %}
{# Per-workflow health #}
Workflow Health
Current queue plus finished/failed over the last 7 days
{% for row in workflow_health %} {% empty %} {% endfor %}
Workflow Queued Running Done Failed Error %
{{ row.name }} {{ row.npending }} {{ row.nrunning }} {{ row.ncompleted }} {{ row.nfailed }} {% if row.error_percent is None %} - {% else %} {{ row.error_percent }}% {% endif %}
No recent work items.
{# Lower Section: Live Calculations Table & Workers by Host #}
{# Left: Live / Recent Workflow Executions #}
Live Calculations
Most recently updated work items
{% for key, label in status_filters %} {% endfor %}
{# opens the explorer with the same filter + ordering as this table #} View All
{# same columns & styling as the WorkItem data explorer table #}
{% if can_manage %}{% endif %} {% for entry in recent_work_items %} {% include "compute_management/work_items/row_cells.html" %} {% if can_manage %} {% endif %} {% empty %} {% endfor %}
ID Workflow Status Elapsed Worker
{% if entry.status == "Pending" %} {% endif %}
No matching work items.
{# Right: Workers grouped by host #}
Workers by Host
Active workers with a recent heartbeat
History
{% for host in worker_hosts %}
{{ host.name }} {% status_badge host.badge_text host.badge_theme icon=host.badge_icon %}
{{ host.nworkers }} worker{{ host.nworkers|pluralize }} · {{ host.nrunning }} running {{ host.utilization }}% utilized
{{ host.ncores|floatformat:"0"|default:"-" }} cores · {{ host.ram|floatformat:"0"|default:"-" }} GB RAM · {{ host.nitems }} items done heartbeat {{ host.last_heartbeat|timesince }} ago
{# open state lives on the component so it survives auto-refresh #}
Workers
    {% for worker in host.workers %}
  • #{{ worker.id }} · {{ worker.status }} · {{ worker.nitems_completed|default_if_none:0 }} done {% if worker.shutdown_flag %} shutting down {% elif can_manage %} {% endif %}
  • {% endfor %}
{% empty %}
No active workers found.
{% endfor %}
{% endblock %}