Skip to content

Commit

Permalink
more assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Feb 14, 2025
1 parent 20b17e3 commit 60dc2d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sky/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,11 @@ def sync_storage_mounts(self) -> None:
assert all(store is not None
for store in storage.stores.values()), storage
self.storage_plans[storage] = list(storage.stores.keys())[0]
assert (storage.stores and all(store is not None for store in storage.stores.values())), storage.__dict__

# TODO(zhwu): investigate if the following is needed, as we have to
# keep the storage mounts for handling the lifecycle of the storage
# mounts.
storage_mounts = self.storage_mounts
storage_plans = self.storage_plans
for mnt_path, storage in storage_mounts.items():
Expand Down

0 comments on commit 60dc2d9

Please sign in to comment.