Skip to content

Commit

Permalink
add info msg to cli output if logs are not available (#1689)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandra Belousov <sashabelousovrh@Alexandras-MBP.lan>
  • Loading branch information
BelSasha and Alexandra Belousov authored Jan 16, 2025
1 parent 6d1d28c commit 702445a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runhouse/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,9 @@ def cluster_logs(
headers=rns_client.request_headers(),
)

if resp.status_code == 404:
console.print("Cluster logs are not available yet.")
return
if resp.status_code != 200:
console.print("Failed to load cluster logs.")
return
Expand Down

0 comments on commit 702445a

Please sign in to comment.