anyscale 0.26.52__py3-none-any.whl → 0.26.54__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/_private/anyscale_client/anyscale_client.py +26 -26
- anyscale/_private/anyscale_client/common.py +5 -5
- anyscale/_private/anyscale_client/fake_anyscale_client.py +6 -6
- anyscale/_private/docgen/__main__.py +8 -8
- anyscale/_private/docgen/generator.py +48 -10
- anyscale/_private/docgen/models.md +2 -2
- anyscale/_private/sdk/__init__.py +124 -1
- anyscale/_private/workload/workload_config.py +4 -6
- anyscale/_private/workload/workload_sdk.py +9 -11
- anyscale/client/README.md +14 -13
- anyscale/client/openapi_client/__init__.py +4 -4
- anyscale/client/openapi_client/api/default_api.py +395 -325
- anyscale/client/openapi_client/models/__init__.py +4 -4
- anyscale/client/openapi_client/models/aws_config.py +2 -2
- anyscale/client/openapi_client/models/baseimagesenum.py +76 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_request.py +31 -3
- anyscale/client/openapi_client/models/cloud_deployment.py +37 -36
- anyscale/client/openapi_client/models/create_resource_notification.py +31 -3
- anyscale/client/openapi_client/models/{decorated_cloud_deployment.py → decorated_cloud_resource.py} +124 -96
- anyscale/client/openapi_client/models/{clouddeployment_list_response.py → decoratedcloudresource_list_response.py} +15 -15
- anyscale/client/openapi_client/models/{clouddeployment_response.py → decoratedcloudresource_response.py} +11 -11
- anyscale/client/openapi_client/models/file_storage.py +4 -4
- anyscale/client/openapi_client/models/gcp_config.py +2 -2
- anyscale/client/openapi_client/models/ha_job_error_types.py +9 -2
- anyscale/client/openapi_client/models/object_storage.py +2 -2
- anyscale/client/openapi_client/models/{decoratedclouddeployment_response.py → presigned_url_response.py} +24 -22
- anyscale/client/openapi_client/models/production_job_event.py +31 -3
- anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
- anyscale/client/openapi_client/models/resource_notification.py +29 -1
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +76 -1
- anyscale/client/openapi_client/models/workload_info.py +31 -3
- anyscale/client/openapi_client/models/workload_state_info.py +29 -1
- anyscale/cloud/models.py +39 -42
- anyscale/commands/cloud_commands.py +25 -23
- anyscale/commands/command_examples.py +10 -10
- anyscale/commands/exec_commands.py +12 -1
- anyscale/commands/list_commands.py +42 -12
- anyscale/commands/project_commands.py +23 -10
- anyscale/commands/schedule_commands.py +22 -11
- anyscale/commands/service_commands.py +11 -6
- anyscale/commands/util.py +94 -1
- anyscale/commands/workspace_commands.py +92 -38
- anyscale/compute_config/__init__.py +1 -1
- anyscale/compute_config/_private/compute_config_sdk.py +8 -11
- anyscale/compute_config/commands.py +3 -3
- anyscale/compute_config/models.py +30 -30
- anyscale/controllers/cloud_controller.py +306 -300
- anyscale/controllers/kubernetes_verifier.py +1 -1
- anyscale/job/_private/job_sdk.py +12 -12
- anyscale/job/models.py +1 -1
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +76 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +76 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- anyscale/workspace/commands.py +114 -23
- anyscale/workspace/models.py +3 -5
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/METADATA +1 -1
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/RECORD +64 -64
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/WHEEL +0 -0
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/top_level.txt +0 -0
@@ -1367,7 +1367,7 @@ class KubernetesCloudDeploymentVerifier:
|
|
1367
1367
|
Args:
|
1368
1368
|
cloud_deployment: The cloud deployment configuration
|
1369
1369
|
"""
|
1370
|
-
deployment_name = cloud_deployment.name or cloud_deployment.
|
1370
|
+
deployment_name = cloud_deployment.name or cloud_deployment.cloud_resource_id
|
1371
1371
|
self.log.info(f"Starting Kubernetes verification for: {deployment_name}")
|
1372
1372
|
|
1373
1373
|
if cloud_deployment.file_storage is not None and isinstance(
|
anyscale/job/_private/job_sdk.py
CHANGED
@@ -19,7 +19,7 @@ from anyscale.client.openapi_client.models.ray_runtime_env_config import (
|
|
19
19
|
from anyscale.compute_config.models import (
|
20
20
|
ComputeConfig,
|
21
21
|
ComputeConfigType,
|
22
|
-
|
22
|
+
MultiResourceComputeConfig,
|
23
23
|
)
|
24
24
|
from anyscale.job.models import (
|
25
25
|
JobConfig,
|
@@ -82,13 +82,13 @@ class PrivateJobSDK(WorkloadSDK):
|
|
82
82
|
- 'working_dir' will be set to '.'.
|
83
83
|
- 'pip' will be set to the workspace-managed requirements file.
|
84
84
|
"""
|
85
|
-
|
85
|
+
cloud_resource_names = self._get_compute_config_cloud_resources(
|
86
86
|
compute_config=config.compute_config, cloud=config.cloud
|
87
87
|
)
|
88
|
-
assert len(
|
88
|
+
assert len(cloud_resource_names) > 0
|
89
89
|
|
90
90
|
runtime_env: Dict[str, Any] = {}
|
91
|
-
if len(
|
91
|
+
if len(cloud_resource_names) == 1:
|
92
92
|
[runtime_env] = self.override_and_upload_local_dirs_single_deployment(
|
93
93
|
[runtime_env],
|
94
94
|
working_dir_override=config.working_dir,
|
@@ -97,10 +97,10 @@ class PrivateJobSDK(WorkloadSDK):
|
|
97
97
|
autopopulate_in_workspace=autopopulate_in_workspace,
|
98
98
|
additional_py_modules=config.py_modules,
|
99
99
|
py_executable_override=config.py_executable,
|
100
|
-
|
100
|
+
cloud_resource_name=cloud_resource_names[0],
|
101
101
|
)
|
102
102
|
else:
|
103
|
-
[runtime_env] = self.
|
103
|
+
[runtime_env] = self.override_and_upload_local_dirs_multi_cloud_resource(
|
104
104
|
[runtime_env],
|
105
105
|
working_dir_override=config.working_dir,
|
106
106
|
excludes_override=config.excludes,
|
@@ -108,7 +108,7 @@ class PrivateJobSDK(WorkloadSDK):
|
|
108
108
|
autopopulate_in_workspace=autopopulate_in_workspace,
|
109
109
|
additional_py_modules=config.py_modules,
|
110
110
|
py_executable_override=config.py_executable,
|
111
|
-
|
111
|
+
cloud_resource_names=cloud_resource_names,
|
112
112
|
)
|
113
113
|
[runtime_env] = self.override_and_load_requirements_files(
|
114
114
|
[runtime_env],
|
@@ -121,15 +121,15 @@ class PrivateJobSDK(WorkloadSDK):
|
|
121
121
|
|
122
122
|
return runtime_env or None
|
123
123
|
|
124
|
-
def
|
124
|
+
def _get_compute_config_cloud_resources(
|
125
125
|
self, compute_config: Union[ComputeConfigType, str, None], cloud: Optional[str]
|
126
126
|
) -> List[Optional[str]]:
|
127
127
|
if isinstance(compute_config, ComputeConfig):
|
128
|
-
# single-
|
129
|
-
return [compute_config.
|
128
|
+
# single-cloud resource compute config
|
129
|
+
return [compute_config.cloud_resource]
|
130
130
|
|
131
|
-
if isinstance(compute_config,
|
132
|
-
return [config.
|
131
|
+
if isinstance(compute_config, MultiResourceComputeConfig):
|
132
|
+
return [config.cloud_resource for config in compute_config.configs]
|
133
133
|
|
134
134
|
compute_config_id = self._resolve_compute_config_id(
|
135
135
|
compute_config=compute_config, cloud=cloud
|
anyscale/job/models.py
CHANGED
@@ -269,7 +269,7 @@ config = JobConfig(
|
|
269
269
|
name="my-job",
|
270
270
|
entrypoint="python main.py",
|
271
271
|
max_retries=1,
|
272
|
-
# An inline `ComputeConfig` or `
|
272
|
+
# An inline `ComputeConfig` or `MultiResourceComputeConfig` can also be provided.
|
273
273
|
compute_config="my-compute-config:1",
|
274
274
|
# A containerfile path can also be provided.
|
275
275
|
image_uri="anyscale/image/my-image:1",
|