So it seems to an issue specific to the version of llama-index-core. Using llama-index-core 0.11.10 doesnt trigger the error, but 0.11.17 does.
I raised
Exception in callback Dispatcher.span.<locals>.wrapper.<locals>.handle_future_result(span_id='Workflow.run...-c8c97f8f7000', bound_args=<BoundArguments ()>, instance=<__main__.Dum...t 0x1169c00b0>, context=<_contextvars...t 0x116840240>)(<WorkflowHand...r('I raised')>) at pypoetry/virtualenvs/example-qJj8z0Hy-py3.12/lib/python3.12/site-packages/llama_index/core/instrumentation/dispatcher.py:273
handle: <Handle Dispatcher.span.<locals>.wrapper.<locals>.handle_future_result(span_id='Workflow.run...-c8c97f8f7000', bound_args=<BoundArguments ()>, instance=<__main__.Dum...t 0x1169c00b0>, context=<_contextvars...t 0x116840240>)(<WorkflowHand...r('I raised')>) at pypoetry/virtualenvs/example-qJj8z0Hy-py3.12/lib/python3.12/site-packages/llama_index/core/instrumentation/dispatcher.py:273>
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.12/3.12.6/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "pypoetry/virtualenvs/example-qJj8z0Hy-py3.12/lib/python3.12/site-packages/llama_index/core/instrumentation/dispatcher.py", line 281, in handle_future_result
result = future.result()
^^^^^^^^^^^^^^^
ValueError: I raised