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

fix(2188): don't allow uvicorn to reconfigure event_loop_policy #2591

Conversation

zyzniewski-reef
Copy link
Contributor

Bug

#2188

Description of the Change

Pass loop="none" to actually not allow uvicorn to set up event loop policy and use our default (at the moment asyncio patched with nest_asyncio)

Alternate Designs

Patching uvicorn (with uvloop) to be nest_asyncio compatible.

Possible Drawbacks

None

Verification Process

Running unittests & launching Axon (with and without uvloop package installed) to see accepting incoming requests.

Release Notes

  • Configure uvicorn to reuse process' event loop policy

@zyzniewski-reef zyzniewski-reef merged commit 8db8d5a into opentensor:staging Jan 21, 2025
28 checks passed
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.

2 participants