@Marvin Are task runners used for both flows and tasks?
m
Marvin
01/10/2025, 11:50 PM
In Prefect 3.x, task runners are used to execute tasks within flows, allowing for concurrent, parallel, or distributed execution. They are configured at the flow level using the
task_runner
keyword in the flow decorator. While task runners are not strictly required for task execution, they enable more advanced execution patterns.
You can use different task runners for different tasks by creating nested flows. For example, you might use the
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.