dask-cloudprovider icon indicating copy to clipboard operation
dask-cloudprovider copied to clipboard

Add ability to detatch from running AzureVMCLuster and reconstruct the class later to refer to an existing cluster

Open manuelreyesgomez opened this issue 4 years ago • 1 comments

The close() method deletes the cluster from Azure

But what if the user has done work on it and has saved work into the scheduler and wants to later come back and pick up where it stopped

It would be great if the user could stop the cluster which would stop all VMs but not delete them and that the user could later come back and restart the cluster by passing its ID

manuelreyesgomez avatar Apr 05 '21 22:04 manuelreyesgomez

Absolutely! This work is in the pipeline as part of the integration with dask-ctl.

Today it is possible to avoid the cluster being shutdown by setting the shutdown_on_close attribute to False on the cluster manager. However this is not currently advertised in this project as there is no way to reconstruct the cluster object with an existing cluster. Do if you deleted the Python object without the cluster being deleted on Azure you would have to clean it up manually.

jacobtomlinson avatar Apr 09 '21 09:04 jacobtomlinson