Flask app “Restarting with stat”

Check your version of Werkzeug. Version 0.10 was just released and numerous changes went into the reloader. One change is that a default polling reloader is used; the old pyinotify reloader was apparently inaccurate. If you want more efficient polling, install the watchdog package. You can see the code related to this here.

When Werkzeug can’t find watchdog, it uses the stat reloader, otherwise it uses whatever reloader watchdog uses, which can vary by platform. This message is just so you know which one is in use.


Watchdog may not be compatible with gevent. If you’re using gevent and having issues with the reloader when using Watchdog, check this GitHub issue.

Leave a Comment