Skip to content

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

Merged
zyzniewski-reef merged 2 commits intoopentensor:stagingfrom
zyzniewski-reef:fix/2188-configure_uvicorn_event_loop
Jan 21, 2025
Merged

fix(2188): don't allow uvicorn to reconfigure event_loop_policy#2591
zyzniewski-reef merged 2 commits intoopentensor:stagingfrom
zyzniewski-reef:fix/2188-configure_uvicorn_event_loop

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
janusdotai added a commit to janusdotai/bitrecs-subnet that referenced this pull request Feb 7, 2025
This was referenced Feb 12, 2025
@zyzniewski-reef
Copy link
Contributor Author

@thewhaleking @roman-opentensor this one got lost in 9.0 release

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