Skip to content

Commit

Permalink
Include fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovilla committed Sep 3, 2024
1 parent 1cb0051 commit c0713ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c0713ea

Please sign in to comment.