anyscale 0.26.3__py3-none-any.whl → 0.26.4__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 (28) hide show
  1. anyscale/_private/docgen/models.md +2 -1
  2. anyscale/_private/workload/workload_config.py +11 -0
  3. anyscale/_private/workload/workload_sdk.py +4 -0
  4. anyscale/client/README.md +2 -10
  5. anyscale/client/openapi_client/__init__.py +0 -6
  6. anyscale/client/openapi_client/api/default_api.py +281 -513
  7. anyscale/client/openapi_client/models/__init__.py +0 -6
  8. anyscale/client/openapi_client/models/node_type.py +2 -1
  9. anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
  10. anyscale/client/openapi_client/models/train_run.py +29 -3
  11. anyscale/client/openapi_client/models/train_worker.py +29 -3
  12. anyscale/job/_private/job_sdk.py +4 -0
  13. anyscale/sdk/anyscale_client/models/node_type.py +2 -1
  14. anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +29 -1
  15. anyscale/version.py +1 -1
  16. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/METADATA +1 -1
  17. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/RECORD +22 -28
  18. anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
  19. anyscale/client/openapi_client/models/log_detail.py +0 -187
  20. anyscale/client/openapi_client/models/log_details.py +0 -151
  21. anyscale/client/openapi_client/models/logdetails_response.py +0 -121
  22. anyscale/client/openapi_client/models/provider_metadata.py +0 -205
  23. anyscale/client/openapi_client/models/providermetadata_response.py +0 -121
  24. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/LICENSE +0 -0
  25. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/NOTICE +0 -0
  26. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/WHEEL +0 -0
  27. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/entry_points.txt +0 -0
  28. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/top_level.txt +0 -0
@@ -1251,7 +1251,7 @@ Name | Type | Description | Notes
1251
1251
  The type of node (head or worker).
1252
1252
 
1253
1253
  Possible Values:
1254
- ['head-node', 'worker-nodes']
1254
+ ['head-node', 'worker-nodes', 'unknown']
1255
1255
 
1256
1256
  ## ObjectStorageConfig
1257
1257
 
@@ -1546,6 +1546,7 @@ Name | Type | Description | Notes
1546
1546
  ------------ | ------------- | ------------- | -------------
1547
1547
  **working_dir** | **str** | The working directory that your code will run in. Must be a remote URI like an s3 or git path. | [optional] [default to null]
1548
1548
  **py_modules** | **List[str]** | Python modules that will be installed along with your runtime env. These must be remote URIs. | [optional] [default to null]
1549
+ **py_executable** | **str** | Specifies the executable used for running the Ray workers. It can include arguments as well. | [optional] [default to null]
1549
1550
  **pip** | **List[str]** | A list of pip packages to install. | [optional] [default to null]
1550
1551
  **conda** | **object** | [Union[Dict[str, Any], str]: Either the conda YAML config or the name of a local conda env (e.g., \"pytorch_p36\"), | [optional] [default to null]
1551
1552
  **env_vars** | **Dict(str, str)** | Environment variables to set. | [optional] [default to null]
@@ -154,6 +154,17 @@ class WorkloadConfig(ModelBase):
154
154
  ):
155
155
  raise TypeError("'py_modules' must be a list of strings.")
156
156
 
157
+ py_executable: Optional[str] = field(
158
+ default=None,
159
+ metadata={
160
+ "docstring": "Specifies the executable used for running the Ray workers. It can include arguments as well."
161
+ },
162
+ )
163
+
164
+ def _validate_py_executable(self, py_executable: Optional[str]):
165
+ if py_executable is not None and not isinstance(py_executable, str):
166
+ raise TypeError("'py_executable' must be a string.")
167
+
157
168
  cloud: Optional[str] = field(
158
169
  default=None,
159
170
  metadata={
@@ -117,6 +117,7 @@ class WorkloadSDK(BaseSDK):
117
117
  cloud_id: Optional[str] = None,
118
118
  autopopulate_in_workspace: bool = True,
119
119
  additional_py_modules: Optional[List[str]] = None,
120
+ py_executable_override: Optional[str] = None,
120
121
  ) -> List[Dict[str, Any]]:
121
122
  """Returns modified runtime_envs with all local dirs converted to remote URIs.
122
123
 
@@ -175,6 +176,9 @@ class WorkloadSDK(BaseSDK):
175
176
  for py_module in final_py_modules
176
177
  ]
177
178
 
179
+ if py_executable_override:
180
+ runtime_env["py_executable"] = py_executable_override
181
+
178
182
  return new_runtime_envs
179
183
 
180
184
  def _resolve_compute_config_id(
anyscale/client/README.md CHANGED
@@ -112,7 +112,6 @@ Class | Method | HTTP request | Description
112
112
  *DefaultApi* | [**create_cloud_api_v2_clouds_post**](docs/DefaultApi.md#create_cloud_api_v2_clouds_post) | **POST** /api/v2/clouds/ | Create Cloud
113
113
  *DefaultApi* | [**create_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_post**](docs/DefaultApi.md#create_cloud_collaborator_api_v2_clouds_cloud_id_collaborators_users_post) | **POST** /api/v2/clouds/{cloud_id}/collaborators/users | Create Cloud Collaborator
114
114
  *DefaultApi* | [**create_cloud_collaborator_api_v2_projects_project_id_collaborators_cloud_post**](docs/DefaultApi.md#create_cloud_collaborator_api_v2_projects_project_id_collaborators_cloud_post) | **POST** /api/v2/projects/{project_id}/collaborators/cloud | Create Cloud Collaborator
115
- *DefaultApi* | [**create_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_post**](docs/DefaultApi.md#create_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_post) | **POST** /api/v2/clouds_with_cloud_resource_router/ | Create Cloud With Cloud Resource
116
115
  *DefaultApi* | [**create_compute_template_api_v2_compute_templates_post**](docs/DefaultApi.md#create_compute_template_api_v2_compute_templates_post) | **POST** /api/v2/compute_templates/ | Create Compute Template
117
116
  *DefaultApi* | [**create_configuration_api_v2_organization_configurations_post**](docs/DefaultApi.md#create_configuration_api_v2_organization_configurations_post) | **POST** /api/v2/organization_configurations/ | Create Configuration
118
117
  *DefaultApi* | [**create_configuration_script_api_v2_organization_configurations_create_helper_get**](docs/DefaultApi.md#create_configuration_script_api_v2_organization_configurations_create_helper_get) | **GET** /api/v2/organization_configurations/create_helper | Create Configuration Script
@@ -153,6 +152,7 @@ Class | Method | HTTP request | Description
153
152
  *DefaultApi* | [**delete_project_collaborator_api_v2_projects_project_id_collaborators_role_or_identity_id_delete**](docs/DefaultApi.md#delete_project_collaborator_api_v2_projects_project_id_collaborators_role_or_identity_id_delete) | **DELETE** /api/v2/projects/{project_id}/collaborators/{role_or_identity_id} | Delete Project Collaborator
154
153
  *DefaultApi* | [**delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete**](docs/DefaultApi.md#delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete) | **DELETE** /api/v2/resource_notifications/{resource_notification_id} | Delete Resource Notification
155
154
  *DefaultApi* | [**delete_resource_quota_api_v2_resource_quotas_resource_quota_id_delete**](docs/DefaultApi.md#delete_resource_quota_api_v2_resource_quotas_resource_quota_id_delete) | **DELETE** /api/v2/resource_quotas/{resource_quota_id} | Delete Resource Quota
155
+ *DefaultApi* | [**delete_service_api_v2_services_v2_service_id_delete**](docs/DefaultApi.md#delete_service_api_v2_services_v2_service_id_delete) | **DELETE** /api/v2/services-v2/{service_id} | Delete Service
156
156
  *DefaultApi* | [**delete_session_api_v2_sessions_session_id_delete**](docs/DefaultApi.md#delete_session_api_v2_sessions_session_id_delete) | **DELETE** /api/v2/sessions/{session_id} | Delete Session
157
157
  *DefaultApi* | [**delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete**](docs/DefaultApi.md#delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete) | **DELETE** /api/v2/sessions/{session_id}/web_terminals/{terminal_id} | Delete Web Terminals
158
158
  *DefaultApi* | [**delete_workspace_api_v2_experimental_workspaces_workspace_id_delete**](docs/DefaultApi.md#delete_workspace_api_v2_experimental_workspaces_workspace_id_delete) | **DELETE** /api/v2/experimental_workspaces/{workspace_id} | Delete Workspace
@@ -236,7 +236,6 @@ Class | Method | HTTP request | Description
236
236
  *DefaultApi* | [**get_job_queue_api_v2_job_queues_job_queue_id_get**](docs/DefaultApi.md#get_job_queue_api_v2_job_queues_job_queue_id_get) | **GET** /api/v2/job_queues/{job_queue_id} | Get Job Queue
237
237
  *DefaultApi* | [**get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post**](docs/DefaultApi.md#get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post) | **POST** /api/v2/clouds_with_cloud_resource_gcp_router/{cloud_id}/get_lb_resource | Get Lb Resource
238
238
  *DefaultApi* | [**get_log_files_api_v2_logs_get_log_files_post**](docs/DefaultApi.md#get_log_files_api_v2_logs_get_log_files_post) | **POST** /api/v2/logs/get_log_files | Get Log Files
239
- *DefaultApi* | [**get_log_files_api_v2_sessions_session_id_get_log_files_post**](docs/DefaultApi.md#get_log_files_api_v2_sessions_session_id_get_log_files_post) | **POST** /api/v2/sessions/{session_id}/get_log_files | Get Log Files
240
239
  *DefaultApi* | [**get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get**](docs/DefaultApi.md#get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get) | **GET** /api/v2/organization_billing/manage_billing_url | Get Manage Billing Url
241
240
  *DefaultApi* | [**get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get**](docs/DefaultApi.md#get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get) | **GET** /api/v2/metronome_customer_info/{organization_id} | Get Metronome Customer Info
242
241
  *DefaultApi* | [**get_metronome_embedded_usage_dashboard_api_v2_organization_billing_metronome_embedded_dashboard_url_dashboard_type_get**](docs/DefaultApi.md#get_metronome_embedded_usage_dashboard_api_v2_organization_billing_metronome_embedded_dashboard_url_dashboard_type_get) | **GET** /api/v2/organization_billing/metronome_embedded_dashboard_url/{dashboard_type} | Get Metronome Embedded Usage Dashboard
@@ -252,9 +251,7 @@ Class | Method | HTTP request | Description
252
251
  *DefaultApi* | [**get_project_api_v2_projects_project_id_get**](docs/DefaultApi.md#get_project_api_v2_projects_project_id_get) | **GET** /api/v2/projects/{project_id} | Get Project
253
252
  *DefaultApi* | [**get_project_default_session_name_api_v2_projects_project_id_default_session_name_get**](docs/DefaultApi.md#get_project_default_session_name_api_v2_projects_project_id_default_session_name_get) | **GET** /api/v2/projects/{project_id}/default_session_name | Get Project Default Session Name
254
253
  *DefaultApi* | [**get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get**](docs/DefaultApi.md#get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get) | **GET** /api/v2/projects/{project_id}/latest_cluster_config | Get Project Latest Cluster Config
255
- *DefaultApi* | [**get_provider_metadata_api_v2_clouds_provider_metadata_cloud_id_get**](docs/DefaultApi.md#get_provider_metadata_api_v2_clouds_provider_metadata_cloud_id_get) | **GET** /api/v2/clouds/provider_metadata/{cloud_id} | Get Provider Metadata
256
254
  *DefaultApi* | [**get_public_identifier_api_v2_organizations_public_identifier_get**](docs/DefaultApi.md#get_public_identifier_api_v2_organizations_public_identifier_get) | **GET** /api/v2/organizations/public_identifier | Get Public Identifier
257
- *DefaultApi* | [**get_ray_result_files_api_v2_sessions_session_id_get_ray_result_files_get**](docs/DefaultApi.md#get_ray_result_files_api_v2_sessions_session_id_get_ray_result_files_get) | **GET** /api/v2/sessions/{session_id}/get_ray_result_files | Get Ray Result Files
258
255
  *DefaultApi* | [**get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get**](docs/DefaultApi.md#get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get) | **GET** /api/v2/recent_activity/cluster_compute_configs | Get Recent Cluster Compute Configs
259
256
  *DefaultApi* | [**get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get**](docs/DefaultApi.md#get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get) | **GET** /api/v2/recent_activity/cluster_environment_builds | Get Recent Cluster Environments
260
257
  *DefaultApi* | [**get_recent_projects_api_v2_recent_activity_projects_get**](docs/DefaultApi.md#get_recent_projects_api_v2_recent_activity_projects_get) | **GET** /api/v2/recent_activity/projects | Get Recent Projects
@@ -287,6 +284,7 @@ Class | Method | HTTP request | Description
287
284
  *DefaultApi* | [**get_templatized_cluster_environments_api_v2_application_templates_templatized_get**](docs/DefaultApi.md#get_templatized_cluster_environments_api_v2_application_templates_templatized_get) | **GET** /api/v2/application_templates/templatized/ | Get Templatized Cluster Environments
288
285
  *DefaultApi* | [**get_templatized_compute_configs_api_v2_compute_templates_templatized_cloud_id_get**](docs/DefaultApi.md#get_templatized_compute_configs_api_v2_compute_templates_templatized_cloud_id_get) | **GET** /api/v2/compute_templates/templatized/{cloud_id} | Get Templatized Compute Configs
289
286
  *DefaultApi* | [**get_total_usage_api_v2_aggregated_instance_usage_get**](docs/DefaultApi.md#get_total_usage_api_v2_aggregated_instance_usage_get) | **GET** /api/v2/aggregated_instance_usage/ | Get Total Usage
287
+ *DefaultApi* | [**get_train_logs_download_api_v2_train_runs_logs_get**](docs/DefaultApi.md#get_train_logs_download_api_v2_train_runs_logs_get) | **GET** /api/v2/train_runs/logs | Get Train Logs Download
290
288
  *DefaultApi* | [**get_train_runs_api_v2_train_runs_get**](docs/DefaultApi.md#get_train_runs_api_v2_train_runs_get) | **GET** /api/v2/train_runs/ | Get Train Runs
291
289
  *DefaultApi* | [**get_user_info_api_v2_userinfo_get**](docs/DefaultApi.md#get_user_info_api_v2_userinfo_get) | **GET** /api/v2/userinfo/ | Get User Info
292
290
  *DefaultApi* | [**get_workspace_api_v2_experimental_workspaces_workspace_id_get**](docs/DefaultApi.md#get_workspace_api_v2_experimental_workspaces_workspace_id_get) | **GET** /api/v2/experimental_workspaces/{workspace_id} | Get Workspace
@@ -575,7 +573,6 @@ Class | Method | HTTP request | Description
575
573
  - [CreateCloudCollaborator](docs/CreateCloudCollaborator.md)
576
574
  - [CreateCloudResource](docs/CreateCloudResource.md)
577
575
  - [CreateCloudResourceGCP](docs/CreateCloudResourceGCP.md)
578
- - [CreateCloudWithCloudResource](docs/CreateCloudWithCloudResource.md)
579
576
  - [CreateClusterComputeConfig](docs/CreateClusterComputeConfig.md)
580
577
  - [CreateComputeTemplate](docs/CreateComputeTemplate.md)
581
578
  - [CreateComputeTemplateConfig](docs/CreateComputeTemplateConfig.md)
@@ -768,8 +765,6 @@ Class | Method | HTTP request | Description
768
765
  - [ListResponseMetadata](docs/ListResponseMetadata.md)
769
766
  - [ListmachinepoolsresponseResponse](docs/ListmachinepoolsresponseResponse.md)
770
767
  - [ListmachinesresponseResponse](docs/ListmachinesresponseResponse.md)
771
- - [LogDetail](docs/LogDetail.md)
772
- - [LogDetails](docs/LogDetails.md)
773
768
  - [LogDownloadConfig](docs/LogDownloadConfig.md)
774
769
  - [LogDownloadRequest](docs/LogDownloadRequest.md)
775
770
  - [LogDownloadResult](docs/LogDownloadResult.md)
@@ -778,7 +773,6 @@ Class | Method | HTTP request | Description
778
773
  - [LogItem](docs/LogItem.md)
779
774
  - [LogItemBatch](docs/LogItemBatch.md)
780
775
  - [LogStream](docs/LogStream.md)
781
- - [LogdetailsResponse](docs/LogdetailsResponse.md)
782
776
  - [LogdownloadresultResponse](docs/LogdownloadresultResponse.md)
783
777
  - [LoginUserParams](docs/LoginUserParams.md)
784
778
  - [LogitembatchResponse](docs/LogitembatchResponse.md)
@@ -882,8 +876,6 @@ Class | Method | HTTP request | Description
882
876
  - [ProjectsViolatingTreeHierarchyResponse](docs/ProjectsViolatingTreeHierarchyResponse.md)
883
877
  - [ProjectsviolatingtreehierarchyresponseResponse](docs/ProjectsviolatingtreehierarchyresponseResponse.md)
884
878
  - [Protocols](docs/Protocols.md)
885
- - [ProviderMetadata](docs/ProviderMetadata.md)
886
- - [ProvidermetadataResponse](docs/ProvidermetadataResponse.md)
887
879
  - [PythonModules](docs/PythonModules.md)
888
880
  - [Quota](docs/Quota.md)
889
881
  - [RayGCSExternalStorageConfig](docs/RayGCSExternalStorageConfig.md)
@@ -180,7 +180,6 @@ from openapi_client.models.create_build import CreateBuild
180
180
  from openapi_client.models.create_cloud_collaborator import CreateCloudCollaborator
181
181
  from openapi_client.models.create_cloud_resource import CreateCloudResource
182
182
  from openapi_client.models.create_cloud_resource_gcp import CreateCloudResourceGCP
183
- from openapi_client.models.create_cloud_with_cloud_resource import CreateCloudWithCloudResource
184
183
  from openapi_client.models.create_cluster_compute_config import CreateClusterComputeConfig
185
184
  from openapi_client.models.create_compute_template import CreateComputeTemplate
186
185
  from openapi_client.models.create_compute_template_config import CreateComputeTemplateConfig
@@ -373,8 +372,6 @@ from openapi_client.models.list_resource_quotas_query import ListResourceQuotasQ
373
372
  from openapi_client.models.list_response_metadata import ListResponseMetadata
374
373
  from openapi_client.models.listmachinepoolsresponse_response import ListmachinepoolsresponseResponse
375
374
  from openapi_client.models.listmachinesresponse_response import ListmachinesresponseResponse
376
- from openapi_client.models.log_detail import LogDetail
377
- from openapi_client.models.log_details import LogDetails
378
375
  from openapi_client.models.log_download_config import LogDownloadConfig
379
376
  from openapi_client.models.log_download_request import LogDownloadRequest
380
377
  from openapi_client.models.log_download_result import LogDownloadResult
@@ -383,7 +380,6 @@ from openapi_client.models.log_filter import LogFilter
383
380
  from openapi_client.models.log_item import LogItem
384
381
  from openapi_client.models.log_item_batch import LogItemBatch
385
382
  from openapi_client.models.log_stream import LogStream
386
- from openapi_client.models.logdetails_response import LogdetailsResponse
387
383
  from openapi_client.models.logdownloadresult_response import LogdownloadresultResponse
388
384
  from openapi_client.models.login_user_params import LoginUserParams
389
385
  from openapi_client.models.logitembatch_response import LogitembatchResponse
@@ -487,8 +483,6 @@ from openapi_client.models.projects_sort_field import ProjectsSortField
487
483
  from openapi_client.models.projects_violating_tree_hierarchy_response import ProjectsViolatingTreeHierarchyResponse
488
484
  from openapi_client.models.projectsviolatingtreehierarchyresponse_response import ProjectsviolatingtreehierarchyresponseResponse
489
485
  from openapi_client.models.protocols import Protocols
490
- from openapi_client.models.provider_metadata import ProviderMetadata
491
- from openapi_client.models.providermetadata_response import ProvidermetadataResponse
492
486
  from openapi_client.models.python_modules import PythonModules
493
487
  from openapi_client.models.quota import Quota
494
488
  from openapi_client.models.ray_gcs_external_storage_config import RayGCSExternalStorageConfig