dask-contrib / dask-ctl

Tools to provide a control plane for managing the lifecycle of Dask clusters.
https://dask-ctl.readthedocs.io
BSD 3-Clause "New" or "Revised" License
24 stars 14 forks source link

Create default fallback #65

Closed jacobtomlinson closed 10 months ago

jacobtomlinson commented 10 months ago

Added a default lookup location for create_cluster(). If you fail to specify the path to a valid spec it will try and find it at dask-cluster.yaml.

>>> import dask_ctl.lifecycle
>>> dask_ctl.lifecycle.create_cluster()
DaskClusterConfigNotFound: Unable to find dask-cluster.yaml

You can also set the local_fallback=True option to start a LocalCluster if a spec file is not found.

>>> import dask_ctl.lifecycle
>>> dask_ctl.lifecycle.create_cluster(local_fallback=True)
LocalCluster(3ce576d4, 'tcp://127.0.0.1:8787', workers=4, threads=12, memory=93.02 GiB)
codecov-commenter commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (afc0e5c) 71.14% compared to head (d00ace7) 72.01%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #65 +/- ## ========================================== + Coverage 71.14% 72.01% +0.86% ========================================== Files 10 11 +1 Lines 357 368 +11 ========================================== + Hits 254 265 +11 Misses 103 103 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.