DSPy streaming breaks due to TaskGroup

An Activity that handles DSPy streaming breaks and keeps retrying due implementation detail of streamify.

This causes temporal activity to fail because there is a TaskGroup error that gets thrown.

“Python taskgroup exited from a different task”

I am not fully aware of how python sdk works. But the only solution to this right now is to write a custom streamify that doesn’t use task group.