Skip to content
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

Use "put_nowait" for event queue #2886

Merged
merged 2 commits into from
May 20, 2024
Merged

Use "put_nowait" for event queue #2886

merged 2 commits into from
May 20, 2024

Conversation

joeyballentine
Copy link
Member

@joeyballentine joeyballentine commented May 19, 2024

Why wait and waste time when not waiting works?

Based on skimming a trace, this actually does appear to make the SSE requests no longer blocking, I think. I could be entirely wrong though, since put_nowait theoretically doesnt do anything different with an infinite size queue

@RunDevelopment
Copy link
Member

Could you make the functions in the executor that no longer need to be async normal function again?

@joeyballentine joeyballentine merged commit af2f741 into main May 20, 2024
14 checks passed
@joeyballentine joeyballentine deleted the put-nowait-sse branch May 20, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants