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
It would be great if this were controllable, or if EXISTS_ON_INIT were a separate event type users like @frank-lenormand could filter out. OTOH it's helpful in some applications to get all files that exist and also get future changes to them, as it's tricky to orchestrate the directory walking and then get change events.
I've also encountered this issue. I have a Dockerized web app on an nginx-uvicorn-FastAPI stack which is orchestrated using Supervisor. I use watchfiles to monitor changes to a config file and send signal to Supervisor to restart the uvicorn process once the config file is changed. The aforementioned behavior of watchfiles leads to an immediate restart of uvicorn right upon the start up.
Description
Hi,
It seems that
watchfiles
runs the given command upon starting up.This is unexpected to me, as I use the tool to run a shell command when the watched files are modified.
Example Code
Linux-5.15.0-69-generic-x86_64-with-Ubuntu-20.04-focal
#76~20.04.1-Ubuntu SMP Mon Mar 20 15:54:19 UTC 2023
The text was updated successfully, but these errors were encountered: