Skip to content

Commit

Permalink
Remove r2 in enabled clouds
Browse files Browse the repository at this point in the history
  • Loading branch information
euclidgame committed Nov 15, 2024
1 parent 3c9d886 commit f20d610
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sky/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from sky import resources as resources_lib
from sky import sky_logging
from sky import task as task_lib
from sky.adaptors import cloudflare
from sky.adaptors import common as adaptors_common
from sky.dag import TaskData
from sky.dag import TaskEdge
Expand Down Expand Up @@ -225,6 +226,8 @@ def _add_storage_nodes_for_data_transfer(
enabled_clouds = (
storage_lib.get_cached_enabled_storage_clouds_or_refresh(
raise_if_no_cloud_access=True))
if cloudflare.NAME in enabled_clouds:
enabled_clouds.remove(cloudflare.NAME)
storage_node.set_resources({
resources_lib.Resources(
clouds.CLOUD_REGISTRY.from_str(cloud_name))
Expand Down

0 comments on commit f20d610

Please sign in to comment.