Skip to content

Commit 2ecfdcd

Browse files
authored
Fix Autoscaler example code snippet on the docs index page (#905)
* Remove duplicate snippet * Include fixed example
1 parent 9bd8ea0 commit 2ecfdcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ A ``DaskAutoscaler`` resource will communicate with the scheduler periodically a
156156
157157
from dask_kubernetes.operator import KubeCluster
158158
cluster = KubeCluster(name="my-dask-cluster", image='ghcr.io/dask/dask:latest')
159-
cluster.scale(10)
159+
cluster.adapt(minimum=1, maximum=10)
160160
161161
.. toctree::
162162
:maxdepth: 2

0 commit comments

Comments
 (0)