xrmx / uwsgitop

top-like app for monitoring uWSGI instances
MIT License
496 stars 77 forks source link

Support for uwsgi reloadable apps #68

Open sreerajkksd opened 3 years ago

sreerajkksd commented 3 years ago

In development environment, uwsgi applications are run in reloadable mode. (ie, py-autoreload=1). But, when I use uwsgitop along with it, uwsgitop fails with urllib.error.URLError: <urlopen error [Errno 111] Connection refused> on every reload.

Is it possible to catch this exception and retry to connect after a few seconds by introducing a re-loadable mode in uwsgitop ?

xrmx commented 3 years ago

Feel free to open a PR but I don't see why one would want to get runtime statistics when actually typing the software.