Skip to content

[Feature] Support concurrency for streamify #8173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 2 tasks
jd02904 opened this issue May 5, 2025 · 0 comments
Open
1 of 2 tasks

[Feature] Support concurrency for streamify #8173

jd02904 opened this issue May 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jd02904
Copy link

jd02904 commented May 5, 2025

What feature would you like to see?

I am running an async dspy app in fast api and running into the below error when processing more than one request at a time:

2025/05/05 17:22:14 WARNING dspy.utils.callback: Error when applying callback <dspy.streaming.messages.StatusStreamingCallback object at 0x32ce150d0>'s end handler on function __call__: This function can only be run from an AnyIO worker thread.
2025/05/05 17:22:14 WARNING dspy.utils.callback: Error when calling callback <dspy.streaming.messages.StatusStreamingCallback object at 0x32ce150d0>: This function can only be run from an AnyIO worker thread

The app runs fine with just one request after the other.
Has this been encountered before? Is there a quick fix to this or is this a limitation of streamify?

Would you like to contribute?

  • Yes, I'd like to help implement this.
  • No, I just want to request it.

Additional Context

No response

@jd02904 jd02904 added the enhancement New feature or request label May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant