Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
suquark committed Mar 16, 2023
1 parent 0901af9 commit 02b7690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sky/spot/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ def _handle_signal(job_id):
def _cleanup(job_id: int, task_yaml: str):
# NOTE: The code to get cluster name is same as what we did in the spot
# controller, we should keep it in sync with SpotController.__init__()
task_name = pathlib.Path(task_yaml).stem
task = sky.Task.from_yaml(task_yaml)
task_name = task.name
cluster_name = spot_utils.generate_spot_cluster_name(task_name, job_id)
recovery_strategy.terminate_cluster(cluster_name)
# Clean up Storages with persistent=False.
Expand Down

0 comments on commit 02b7690

Please sign in to comment.