https://prefect.io logo
r

Robert Rehner

08/03/2023, 3:58 PM
If I run multiple tasks from within a flow. What's the default? Will they run sequentially as called? And if a task fails, will the others be executet or is the flow stopped?
b

Bianca Hoch

08/03/2023, 5:29 PM
Hi Robert, I believe that by default, calling multiple tasks in a flow causes them to run sequentially. If a task fails, the tasks that are downstream of the failed task run are not executed, and the flow fails. If the flow doesn't return a value, the final state of the flow run is determined by the states of all the tasks. So, if any task run fails, the final flow run state is
Failed
👍 1
r

Robert Rehner

08/03/2023, 10:00 PM
thx. This is a reasonable default setting. Works fine for my tasks since downstream tasks would fail anyway if the upstream did not terminate properly