https://prefect.io logo
f

fabian wolfmann

11/11/2020, 7:27 PM
Hi! is there a way to schedule a flow depending on a condition?
m

Mariia Kerimova

11/11/2020, 7:35 PM
Hi Fabian! Check out control flow tasks. I believe switch function can help you
d

Dave

11/11/2020, 8:30 PM
It depends on what you exactly mean by "condition", have you looked at the docs and at scheduling filters? Can you elaborate what you mean by condition, because there is multiple ways to come around different scenarios? e.g. Have your flow running every hour and check if your condition is met when that's the case then run the specific "branch" of your flow that need a specific precondition.
f

fabian wolfmann

11/14/2020, 4:15 PM
thanks i resolve it with usual python, since the condition is calculated before the flow runs