Clicking a red transfer bar on task stream causes error
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 778
- Avg merge
- 2h 50m
- Merged PRs (30d)
- 3
Description
Just noting this: if you click one of the red transfer bars on the task stream, it throws an error, and opens an invalid profile page like `/profile?key=transfer-_chunk_sum-partial`

```python-traceback
distributed.utils - ERROR - 'transfer-_chunk_sum-partial'
Traceback (most recent call last):
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/distributed/utils.py", line 695, in log_errors
yield
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/distributed/dashboard/components/shared.py", line 285, in update
ts = metadata["keys"][self.key]
KeyError: 'transfer-_chunk_sum-partial'
tornado.application - ERROR - Exception in callback functools.partial(>, ._needs_document_lock_wrapper() done, defined at /Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/server/session.py:77> exception=KeyError('transfer-_chunk_sum-partial')>)
Traceback (most recent call last):
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/tornado/ioloop.py", line 741, in _run_callback
ret = callback()
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/tornado/ioloop.py", line 765, in _discard_future_result
future.result()
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/server/session.py", line 93, in _needs_document_lock_wrapper
result = func(self, *args, **kwargs)
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/server/session.py", line 227, in with_document_locked
return func(*args, **kwargs)
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/document/callbacks.py", line 450, in wrapper
return invoke_with_curdoc(doc, invoke)
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/document/callbacks.py", line 408, in invoke_with_curdoc
return f()
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/document/callbacks.py", line 449, in invoke
return f(*args, **kwargs)
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/document/callbacks.py", line 179, in remove_then_invoke
return callback()
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/distributed/dashboard/components/shared.py", line 306, in
self.doc().add_next_tick_callback(lambda: self.update(prof, metadata))
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/core/property/validation.py", line 95, in func
return input_function(*args, **kwargs)
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/distributed/dashboard/components/shared.py", line 285, in update
ts = metadata["keys"][self.key]
KeyError: 'transfer-_chunk_sum-partial'
```
These red transfer boxes (and the yellow splil-to-disk ones) should ideally just not be clickable.
Contributor guide
Assessment
This issue has not been assessed yet.