From 524d342d6693788ac0cddef0e8140157ab0c56e6 Mon Sep 17 00:00:00 2001 From: Caroline Chen Date: Mon, 15 Jul 2024 16:11:34 -0400 Subject: [PATCH] Add up if not to clusters in tutorials (#1009) --- docs/tutorials/api-clusters.rst | 3 ++- docs/tutorials/quick-start-den.rst | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/api-clusters.rst b/docs/tutorials/api-clusters.rst index 168214557..b4df60d78 100644 --- a/docs/tutorials/api-clusters.rst +++ b/docs/tutorials/api-clusters.rst @@ -56,6 +56,7 @@ types on AWS). import runhouse as rh aws_cluster = rh.cluster(name="test-cluster", instance_type="CPU:2") + aws_cluster.up_if_not() Next, we set up a basic function to throw up on our cluster. For more information about Functions & Modules that you can put up on a cluster, @@ -109,7 +110,7 @@ and access objects and functions via ``curl``. open_ports=[443], # expose HTTPS port to public server_connection_type="tls", # specify how runhouse communicates with this cluster den_auth=False, # no authentication required to hit this cluster (NOT recommended) - ) + ).up_if_not() .. parsed-literal:: diff --git a/docs/tutorials/quick-start-den.rst b/docs/tutorials/quick-start-den.rst index 046c88cbf..ca1ecf053 100644 --- a/docs/tutorials/quick-start-den.rst +++ b/docs/tutorials/quick-start-den.rst @@ -71,7 +71,7 @@ properly configured by running ``sky check``. name="rh-cluster", instance_type="CPU:2+", provider="aws" - ) + ).up_if_not() .. code:: ipython3