From 2ecfdcd41b0e09665d4ff98cb40528218fea10fe Mon Sep 17 00:00:00 2001 From: Marcelo Villa Date: Tue, 3 Sep 2024 15:40:07 -0500 Subject: [PATCH] Fix Autoscaler example code snippet on the docs index page (#905) * Remove duplicate snippet * Include fixed example --- docs/source/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index 87e41aac..5aa0e23d 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -156,7 +156,7 @@ A ``DaskAutoscaler`` resource will communicate with the scheduler periodically a from dask_kubernetes.operator import KubeCluster cluster = KubeCluster(name="my-dask-cluster", image='ghcr.io/dask/dask:latest') - cluster.scale(10) + cluster.adapt(minimum=1, maximum=10) .. toctree:: :maxdepth: 2