Anton L.
02/14/2024, 2:04 PMMarvin
02/14/2024, 2:04 PMDaskTaskRunner
to use a FargateCluster
by specifying the cluster class and additional arguments such as the number of workers and the Docker image to use.
For example:
python
from prefect.run_configs import DaskTaskRunner
DaskTaskRunner(
cluster_class="dask_cloudprovider.aws.FargateCluster",
cluster_kwargs={"n_workers": 4, "image": "my-prefect-image"},
)
In this configuration, the DaskRunner will create a FargateCluster with 4 workers using the specified image when starting a flow run.Anton L.
02/14/2024, 2:05 PM