Skip to content

Commit

Permalink
clean up condition
Browse files Browse the repository at this point in the history
  • Loading branch information
romilbhardwaj committed Jan 6, 2025
1 parent 17ef3af commit 3c0372f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sky/backends/cloud_vm_ray_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4211,8 +4211,7 @@ def post_teardown_cleanup(self,
f'set. Details: '
f'{common_utils.format_exception(e, use_bracket=True)}')
break
else:
raise
raise

unexpected_node_state: Optional[Tuple[str, str]] = None
for node_id, node_status in node_status_dict.items():
Expand All @@ -4236,9 +4235,8 @@ def post_teardown_cleanup(self,
f'state {node_status}. Skipping since purge '
'is set.')
break
else:
raise RuntimeError(f'Instance {node_id} in unexpected '
f'state {node_status}.')
raise RuntimeError(f'Instance {node_id} in unexpected '
f'state {node_status}.')

global_user_state.remove_cluster(handle.cluster_name,
terminate=terminate)
Expand Down

0 comments on commit 3c0372f

Please sign in to comment.