Skip to content

Commit

Permalink
make _get_preferred_store private
Browse files Browse the repository at this point in the history
  • Loading branch information
romilbhardwaj committed Mar 25, 2024
1 parent 60fe268 commit c614241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sky/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def update_storage_mounts(
task_storage_mounts.update(storage_mounts)
return self.set_storage_mounts(task_storage_mounts)

def get_preferred_store(
def _get_preferred_store(
self) -> Tuple[storage_lib.StoreType, Optional[str]]:
"""Returns the preferred store type and region for this task."""
# TODO(zhwu, romilb): The optimizer should look at the source and
Expand Down Expand Up @@ -906,7 +906,7 @@ def sync_storage_mounts(self) -> None:
"""
for storage in self.storage_mounts.values():
if len(storage.stores) == 0:
store_type, store_region = self.get_preferred_store()
store_type, store_region = self._get_preferred_store()
self.storage_plans[storage] = store_type
storage.add_store(store_type, store_region)
else:
Expand Down

0 comments on commit c614241

Please sign in to comment.