I have a prefect flow that I want to run if and when a specific file appears. With something like Luigi you would create an ExternalTask that outputs that file and then impose a dependence on it. What is the standard pattern for this in Prefect?
I have a prefect flow that I want to run if and when a specific file appears. With something like Luigi you would create an ExternalTask that outputs that file and then impose a dependence on it. What is the standard pattern for this in Prefect?
There are a few options depending on your use case:
create_flow_run whenever your external condition is met (possibly with Parameter values describing the condition) to create an ad-hoc run of your flow. For more discussion of this pattern, check out this stackoverflow question