{# Spec 149 — Top Failed Jobs by Slot Wasted. Same `ui-pane` / `ui-table` shell as _cost_drivers.html so the dashboard reads as one continuous surface. Renders only when failed_drivers is non-empty so clean warehouses don't see the section at all. #} {% if failed_drivers and failed_drivers | length > 0 %}
| Dataset | Object | Reason | Executions | Slot Wasted | Last Failed |
|---|---|---|---|---|---|
| {{ row.destination_dataset or '—' }} | {{ row.destination_short }} | {% if row.last_error_reason %} {# Visible label is the humanised reason ("Invalid query" instead of "invalidQuery"); tooltip shows the live BigQuery error message when present, else the curated description, else the raw camelCase code so it stays grep-discoverable. #} {{ row.last_error_reason | bq_reason_humanize }} {% else %} — {% endif %} | {{ "{:,}".format(row.execution_count) }} | {{ row.total_slot_human }} | {{ row.last_failed_at.strftime("%d/%m/%Y") if row.last_failed_at else "—" }} |