Inside flow can we use for loop , if else and other programming stuff?
a
Amanda Wee
04/04/2022, 3:07 AM
Yes, but at flow level (as in within the flow, but outside of tasks) they will run at the time the flow is defined, not at the time the flow is run. If you want to control the flow of tasks run when the flow is run, see:
https://docs.prefect.io/api/latest/tasks/control_flow.html
a
Atul Anand
04/04/2022, 4:06 AM
@Amanda Wee it think trigger and upstream is also useful to control task execution flow.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.