Is there an example of running a flow using watchd...
# prefect-community
m
Is there an example of running a flow using watchdog? I guess maybe make the first task the file watcher?
j
Hi @Mark Williams - I’m not familiar with watchdog, but based on my limited knowledge, yes, generally you would incorporate the watcher into a task, and block until a new file arrived. Then you can return from the task to indicate its successful completion and allow downstream tasks to run
We have designed a first-class listener model for Prefect, described in PIN 14, but have not built it yet. https://docs.prefect.io/core/PINs/PIN-14-Listener-Flows-2.html