Evening,
When I'm trying to reload my Flask app after changes it's gotten really slow.
The error message it kicks out in the server log is:
2018-04-29 22:44:12 Gracefully killing worker 1 (pid: 5)...
2018-04-29 22:44:12 Gracefully killing worker 2 (pid: 8)...
2018-04-29 22:44:12 Error in atexit._run_exitfuncs:
2018-04-29 22:44:12 Traceback (most recent call last):
2018-04-29 22:44:12 File "/usr/lib/python3.6/logging/__init__.py", line 1913, in shutdown
2018-04-29 22:44:12 h.flush()
2018-04-29 22:44:12 File "/usr/lib/python3.6/logging/__init__.py", line 970, in flush
2018-04-29 22:44:12 if self.stream and hasattr(self.stream, "flush"):
2018-04-29 22:44:12 File "/home/username/.virtualenvs/venvnameorders/lib/python3.6/site-packages/werkzeug/local.py", line 328, in __bool__
2018-04-29 22:44:12 return bool(self._get_current_object())
2018-04-29 22:44:12 File "/home/username/.virtualenvs/venvnameorders/lib/python3.6/site-packages/werkzeug/local.py", line 306, in _get_current_object
2018-04-29 22:44:12 return self.__local()
2018-04-29 22:44:12 File "/home/username/.virtualenvs/venvnameorders/lib/python3.6/site-packages/flask/logging.py", line 30, in wsgi_errors_stream
2018-04-29 22:44:12 return request.environ['wsgi.errors'] if request else sys.stderr
2018-04-29 22:44:12 KeyError: 'wsgi.errors'
2018-04-29 22:45:13 Sun Apr 29 22:45:13 2018 - worker 1 (pid: 5) is taking too much time to die...NO MERCY !!!
2018-04-29 22:45:13 Sun Apr 29 22:45:13 2018 - worker 2 (pid: 8) is taking too much time to die...NO MERCY !!!
Not sure how to debug this... Can anyone help?
Thanks.