<@ULVA73B9P> Are task runners used for both flows ...
# ask-marvin
j
@Marvin Are task runners used for both flows and tasks?
m
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
ThreadPoolTaskRunner
for local concurrent execution and the
DaskTaskRunner
for distributed execution on a Dask cluster. Here’s a link for more details: Task Runners in Prefect 3.x.
n
plus1