anyscale 0.26.52__py3-none-any.whl → 0.26.53__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.
Files changed (62) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +26 -26
  2. anyscale/_private/anyscale_client/common.py +5 -5
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +6 -6
  4. anyscale/_private/docgen/__main__.py +8 -8
  5. anyscale/_private/docgen/generator.py +48 -10
  6. anyscale/_private/docgen/models.md +2 -2
  7. anyscale/_private/sdk/__init__.py +124 -1
  8. anyscale/_private/workload/workload_config.py +4 -6
  9. anyscale/_private/workload/workload_sdk.py +9 -11
  10. anyscale/client/README.md +12 -13
  11. anyscale/client/openapi_client/__init__.py +3 -4
  12. anyscale/client/openapi_client/api/default_api.py +272 -325
  13. anyscale/client/openapi_client/models/__init__.py +3 -4
  14. anyscale/client/openapi_client/models/aws_config.py +2 -2
  15. anyscale/client/openapi_client/models/baseimagesenum.py +76 -1
  16. anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_request.py +31 -3
  17. anyscale/client/openapi_client/models/cloud_deployment.py +37 -36
  18. anyscale/client/openapi_client/models/create_resource_notification.py +31 -3
  19. anyscale/client/openapi_client/models/{decorated_cloud_deployment.py → decorated_cloud_resource.py} +124 -96
  20. anyscale/client/openapi_client/models/{clouddeployment_list_response.py → decoratedcloudresource_list_response.py} +15 -15
  21. anyscale/client/openapi_client/models/{clouddeployment_response.py → decoratedcloudresource_response.py} +11 -11
  22. anyscale/client/openapi_client/models/file_storage.py +4 -4
  23. anyscale/client/openapi_client/models/gcp_config.py +2 -2
  24. anyscale/client/openapi_client/models/ha_job_error_types.py +9 -2
  25. anyscale/client/openapi_client/models/object_storage.py +2 -2
  26. anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
  27. anyscale/client/openapi_client/models/resource_notification.py +29 -1
  28. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +76 -1
  29. anyscale/client/openapi_client/models/workload_info.py +31 -3
  30. anyscale/client/openapi_client/models/workload_state_info.py +29 -1
  31. anyscale/cloud/models.py +39 -42
  32. anyscale/commands/cloud_commands.py +25 -23
  33. anyscale/commands/command_examples.py +10 -10
  34. anyscale/commands/exec_commands.py +12 -1
  35. anyscale/commands/list_commands.py +42 -12
  36. anyscale/commands/project_commands.py +23 -10
  37. anyscale/commands/schedule_commands.py +22 -11
  38. anyscale/commands/service_commands.py +11 -6
  39. anyscale/commands/util.py +94 -1
  40. anyscale/commands/workspace_commands.py +92 -38
  41. anyscale/compute_config/__init__.py +1 -1
  42. anyscale/compute_config/_private/compute_config_sdk.py +8 -11
  43. anyscale/compute_config/commands.py +3 -3
  44. anyscale/compute_config/models.py +30 -30
  45. anyscale/controllers/cloud_controller.py +306 -300
  46. anyscale/controllers/kubernetes_verifier.py +1 -1
  47. anyscale/job/_private/job_sdk.py +12 -12
  48. anyscale/job/models.py +1 -1
  49. anyscale/sdk/anyscale_client/models/baseimagesenum.py +76 -1
  50. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +76 -1
  51. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  52. anyscale/version.py +1 -1
  53. anyscale/workspace/commands.py +114 -23
  54. anyscale/workspace/models.py +3 -5
  55. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/METADATA +1 -1
  56. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/RECORD +61 -62
  57. anyscale/client/openapi_client/models/decoratedclouddeployment_response.py +0 -121
  58. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/WHEEL +0 -0
  59. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/entry_points.txt +0 -0
  60. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/licenses/LICENSE +0 -0
  61. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/licenses/NOTICE +0 -0
  62. {anyscale-0.26.52.dist-info → anyscale-0.26.53.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.cloud_deployment_id
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(
@@ -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
- MultiDeploymentComputeConfig,
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
- cloud_deployments = self._get_compute_config_cloud_deployments(
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(cloud_deployments) > 0
88
+ assert len(cloud_resource_names) > 0
89
89
 
90
90
  runtime_env: Dict[str, Any] = {}
91
- if len(cloud_deployments) == 1:
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
- cloud_deployment=cloud_deployments[0],
100
+ cloud_resource_name=cloud_resource_names[0],
101
101
  )
102
102
  else:
103
- [runtime_env] = self.override_and_upload_local_dirs_multi_deployment(
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
- cloud_deployments=cloud_deployments,
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 _get_compute_config_cloud_deployments(
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-deployment compute config
129
- return [compute_config.cloud_deployment]
128
+ # single-cloud resource compute config
129
+ return [compute_config.cloud_resource]
130
130
 
131
- if isinstance(compute_config, MultiDeploymentComputeConfig):
132
- return [config.cloud_deployment for config in compute_config.configs]
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 `MultiDeploymentComputeConfig` can also be provided.
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",