Python Forum
run watchdog in flask app with uwsgi - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: run watchdog in flask app with uwsgi (/thread-26270.html)



run watchdog in flask app with uwsgi - experimental - Apr-25-2020

Does anybody have experience in running flask app monitoring filesystem changes?

I have something written andit works fine when i run on a development server but when i put gunicorn or uswgi into the play, the watchdog just stops operating. I cant figure why. I have set my uwsgi as --enabled-threads, so whats the problem?

If someobody could help me to find out why it doesnt work, i would be gratefull.

Here is the piece of code on SO https://stackoverflow.com/questions/61432842/watchdog-in-flask-doesnt-monitor-changes-when-run-on-uwsgi-gunicorn