From c0713ea7c01f002fe5efd34fe1498da432f719c2 Mon Sep 17 00:00:00 2001 From: Marcelo Villa Date: Tue, 3 Sep 2024 08:16:21 -0500 Subject: [PATCH] Include fixed example --- docs/source/index.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/source/index.rst b/docs/source/index.rst index c7443a0b..5aa0e23d 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -152,6 +152,12 @@ Autoscalers A ``DaskAutoscaler`` resource will communicate with the scheduler periodically and auto scale the default ``DaskWorkerGroup`` to the desired number of workers. +.. code-block:: python + + from dask_kubernetes.operator import KubeCluster + cluster = KubeCluster(name="my-dask-cluster", image='ghcr.io/dask/dask:latest') + cluster.adapt(minimum=1, maximum=10) + .. toctree:: :maxdepth: 2 :hidden: