Replies: 3 comments 3 replies
-
+1 for this, this is the way I do things with gunicorn. It's a delightfully easy way to hotreload latest commits to a dockerized application by just saying |
Beta Was this translation helpful? Give feedback.
-
The new process manager already supports this feature. #2183 You can update uvicorn to >=0.30.0. kill -SIGHUP $PID |
Beta Was this translation helpful? Give feedback.
-
@sirex @T-101 am I missing something or isn't this a rather damaging idea? When I close the terminal where the app is running the app gets a SIGHUP. So I'd actually expect uvicorn to do a graceful app shutdown in this case just like it does for SIGINT and SIGTERM. Having the app crash badly just because I close the terminal isn't what I'd consider sensible at all. |
Beta Was this translation helpful? Give feedback.
-
It would be useful to have a possibility to reload uvicorn manually with SIGHUP signal.
For example if I change some configuration files, I would like to do:
Now terminate uvicorn and start it again.
Beta Was this translation helpful? Give feedback.
All reactions