Are you using run_gunicorn (now deprecated)?
Gunicorn not reloading code completely with the HUP signal
-
28-09-2022 - |
Pregunta
I'm running gunicorn and I use the HUP signal to reload gunicorn gracefully. However, it seems that changes in models.py are not reloaded for some reason. To be specific I do:
sudo kill -HUP `cat masterpid`
I also run gunicorn with supervisor, so I end up doing a hard restart of gunicorn with supervisor, but it is not graceful and there is a second or two of downtime (plus some possibly broken requests). Does anyone have a solution for this?
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow