graph_metrics() raises and generate a dashboard internal error
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 778
- Avg merge
- 2h 50m
- Merged PRs (30d)
- 3
Description
Here a little MCVE that breaks the Dashboard **Groups** page.
The `graph_metrics()` function used by the Groups Dashboard page raises due to a missing key in `total_dependencies`.
**Minimal Complete Verifiable Example**:
```python
import dask.distributed
cluster = dask.distributed.LocalCluster()
client = dask.distributed.Client(cluster)
client
```
Open the Dask diagnostic Dashboard and select the **Groups** view
```python
dd1 = dask.datasets.timeseries()
# 'head' needs to be passed as a non-aligned dd via a keyword parameter in order to reproduce this specific bug
dd2 = dask.dataframe.map_partitions(lambda part, head: part, dd1, head=dd1.head(1, compute=False))
dd3 = dask.dataframe.map_partitions(lambda part, head: part, dd2, head=dd2.head(1, compute=False))
dd3.compute()
```
Here the console exception:

Here is the dashboard exception:

**Anything else we need to know?**:
Removing `.head(1, compute=False)` still raises, it's simply here to illustrate my needs for the non-aligned keyword parameter.
**Environment**:
- Dask version: 2023.1.1
- Python version: 3.9.12
- Operating System: Win10
- Install method (conda, pip, source): pip
Contributor guide
Assessment
This issue has not been assessed yet.