From a3c8671304a110cf0ab97c3b79a732de8d18235b Mon Sep 17 00:00:00 2001 From: Raphael Randschau Date: Wed, 21 Sep 2022 07:01:08 -0700 Subject: [PATCH] change cluster creation log message (#14672) Co-authored-by: Laverne Henderson --- src/lightning_app/cli/cmd_clusters.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/lightning_app/cli/cmd_clusters.py b/src/lightning_app/cli/cmd_clusters.py index 96e1bae01c..0cff6eb83a 100644 --- a/src/lightning_app/cli/cmd_clusters.py +++ b/src/lightning_app/cli/cmd_clusters.py @@ -2,6 +2,7 @@ import json import re import time from datetime import datetime +from textwrap import dedent from typing import Any, List import click @@ -136,7 +137,19 @@ class AWSClusterManager: if wait: _wait_for_cluster_state(self.api_client, resp.id, V1ClusterState.RUNNING) - click.echo(f"{resp.id} cluster is in {resp.status.phase} state") + click.echo( + dedent( + f"""\ + {resp.id} is now being created... This can take up to an hour. + + To view the status of your clusters use: + `lightning list clusters` + + To view cluster logs use: + `lightning show cluster logs {resp.id}` + """ + ) + ) def get_clusters(self) -> ClusterList: resp = self.api_client.cluster_service_list_clusters(phase_not_in=[V1ClusterState.DELETED])