سؤال

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?

هل كانت مفيدة؟

المحلول

Are you using run_gunicorn (now deprecated)?

https://github.com/benoitc/gunicorn/issues/536

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top