pallets / werkzeug

The comprehensive WSGI web application library.
https://werkzeug.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
6.66k stars 1.73k forks source link

Doesn't work on FUSE file systems #2950

Closed LittleLightLittleFire closed 2 months ago

LittleLightLittleFire commented 2 months ago

Run reloader on any FUSE filesystem. FUSE does not support inotify, the current implementation defaults to 'auto' which defaults to 'inotify' when watchdog.observes exists (https://github.com/pallets/werkzeug/blob/main/src/werkzeug/_reloader.py#L405)

Needs a switch to force 'auto' to 'stat' mode, possibly via environmental variables so that it can be user controlled.

Environment:

davidism commented 2 months ago

run_simple(..., reloader_type="stat")