You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having issue with the watch/awatch examples not generating changes inside of docker.
Tried with mounted file, mounted folder and a file inside of the container.
In the same environment watchfiles and run_process triggers as expected.
A raw-event is still logged (with debug=True) for watch/awatch, but nothing more happens
Forgot that you have to print(..., flush=True) if you run inside of docker, so not a bug.
Tested it with print(..., flush=True) and everything works as expected.
Description
Having issue with the
watch
/awatch
examples not generating changes inside of docker.Tried with mounted file, mounted folder and a file inside of the container.
In the same environment
watchfiles
andrun_process
triggers as expected.A
raw-event
is still logged (with debug=True) forwatch
/awatch
, but nothing more happensOutside of docker all versions (see below) works as expected and all versions trigger on changes.
The same behavior is observed with both
PollWatcher
andINotifyWatcher
(viaWATCHFILES_FORCE_POLLING=1
).Example Code
Watchfiles Output
Operating System & Architecture
Linux-6.2.10-arch1-1-x86_64-with-glibc2.37
#1 SMP PREEMPT_DYNAMIC Fri, 07 Apr 2023 02:10:43 +0000
Environment
Docker version 23.0.3, build 3e7cbfdee1; Docker Compose version 2.17.2
Python & Watchfiles Version
python: 3.10.10 (main, Mar 5 2023, 22:26:53) [GCC 12.2.1 20230201], watchfiles: 0.19.0
Rust & Cargo Version
No response
The text was updated successfully, but these errors were encountered: