How to properly stop uvicorn to not produce zombie python process? #2613
Unanswered
piotrekkr
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
On my local dev env (inside python docker container) I'm trying to use
supervisord
with anuvicorn
program.When I start
supervisord
with:supervisord -c .docker/supervisor/dev.conf
I getuvicorn
process up and running with some additional watcher processesAnd process list looks like this:
Then I use
CTRL+C
to stop supervisor and it stops all programs:However in process list I have zombie python process for some reason:
With
TERM
as stop signal I get same issue. I also triedKILL
andQUIT
and this did not left zombie processes, but it did not close alluvicorn
processes like those:So how can I properly close
uvicorn
app onsupervisor
exit?Some package info:
// EDIT
Did some more testing and it seems it is not related to supervisor at all. I've run:
Process list looked like this:
Now CTRL+C
And there is a zombie process :/
Any way to properly close
uvicorn
?Beta Was this translation helpful? Give feedback.
All reactions