https://prefect.io logo
Title
m

Mark Williams

03/23/2020, 11:00 PM
Is there an example of running a flow using watchdog? I guess maybe make the first task the file watcher?
j

Jeremiah

03/23/2020, 11:31 PM
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