Skip to content

Commit

Permalink
explicitly specify stages
Browse files Browse the repository at this point in the history
  • Loading branch information
cg505 committed Oct 31, 2024
1 parent 89fc09d commit b239a6c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sky/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,13 @@ def launch(
dryrun=dryrun)
handle = maybe_handle
# Get all stages
stages = list(Stage)
# Skip CLONE_DISK, PROVISION, and SETUP
stages.remove(Stage.CLONE_DISK)
stages.remove(Stage.PROVISION)
stages.remove(Stage.SETUP)
stages = [
Stage.SYNC_WORKDIR,
Stage.SYNC_FILE_MOUNTS,
Stage.PRE_EXEC,
Stage.EXEC,
Stage.DOWN,
]
except exceptions.ClusterNotUpError:
# Proceed with normal provisioning
pass
Expand Down

0 comments on commit b239a6c

Please sign in to comment.