Skip to content

Uvicorn worker processes die on startup when PYTHONDONTWRITEBYTECODE=1 #2396

Closed Answered by winstxnhdw
winstxnhdw asked this question in Potential Issue
Discussion options

You must be logged in to vote

False alarm. I had pyannote.audio imported in one of the script that I forgot to comment out. This causes Uvicorn workers to die for whatever reason. Why this only happens when workers are set to 2 and PYTHONDONTWRITEBYTECODE=1 is a mystery, but at least it's not Uvicorn's problem.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@abersheeran
Comment options

@winstxnhdw
Comment options

Comment options

You must be logged in to vote
4 replies
@winstxnhdw
Comment options

@abersheeran
Comment options

@winstxnhdw
Comment options

Answer selected by Kludex
@winstxnhdw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants