pallets / flask

The Python micro framework for building web applications.
https://flask.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
68.2k stars 16.25k forks source link

Allow choice of reloader type #5598

Closed oelhammouchi closed 3 months ago

oelhammouchi commented 3 months ago

I know it was closed in #5007, but would it be possible to reconsider this? I'm having a lot of trouble with watchdog despite following all the fixes proposed such as #2603. The reloader constantly detects spurious file changes, whereas I've never experienced such issues with stat. If you really dislike the idea of a new flag, maybe an environment variable would be an option?

Thanks a lot for the work on this awesome package!

davidism commented 3 months ago

My comment in https://github.com/pallets/flask/issues/5007#issuecomment-1450877246 still applies. The solution is to fix the reloader, not to provide a toggle that users shouldn't need. If you have an issue with the reloader, create a minimal reproducible example and report that to Werkzeug or Watchdog.