https://prefect.io logo
h

Haotian Li

02/13/2023, 6:15 AM
Hi Prefect Community, question about Scaling Task.map method: It doesn't seem like that when using the map method for task it will scale to multiple K8s pods. Is there any way to make it do so? The only work around now is to just use sub flows inside for loops instead of using task map method if we want horizontal task scaling.
1
z

Zanie

02/13/2023, 5:36 PM
Hi @Haotian Li — it sounds like you’ll want to use a Dask task runner with a dask-kubernetes cluster with autoscaling of workers.
h

Haotian Li

02/14/2023, 1:57 PM
Thanks @Zanie! An additional question, if I use a ConcurrentTaskRunner flow to call a DaskTaskRunner flow, does that mean only the Dask Flow will be submitted to Dask Cluster, not the super flow?
z

Zanie

02/14/2023, 3:43 PM
Yep!
🙌 1
1