anyscale 0.26.27__py3-none-any.whl → 0.26.29__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 (48) hide show
  1. anyscale/_private/docgen/__main__.py +0 -18
  2. anyscale/_private/docgen/api.md +0 -125
  3. anyscale/_private/docgen/models.md +1 -111
  4. anyscale/client/README.md +0 -6
  5. anyscale/client/openapi_client/__init__.py +0 -4
  6. anyscale/client/openapi_client/api/default_api.py +0 -228
  7. anyscale/client/openapi_client/models/__init__.py +0 -4
  8. anyscale/client/openapi_client/models/cloud.py +31 -3
  9. anyscale/client/openapi_client/models/cloud_with_cloud_resource.py +29 -1
  10. anyscale/client/openapi_client/models/cloud_with_cloud_resource_gcp.py +29 -1
  11. anyscale/client/openapi_client/models/dataset_metrics.py +2 -3
  12. anyscale/client/openapi_client/models/operator_metrics.py +2 -3
  13. anyscale/client/openapi_client/models/workload_info.py +59 -3
  14. anyscale/cloud/models.py +13 -0
  15. anyscale/commands/machine_pool_commands.py +11 -9
  16. anyscale/commands/service_commands.py +4 -2
  17. anyscale/controllers/cloud_controller.py +0 -1
  18. anyscale/formatters/clouds_formatter.py +8 -0
  19. anyscale/sdk/anyscale_client/__init__.py +0 -11
  20. anyscale/sdk/anyscale_client/api/default_api.py +140 -1433
  21. anyscale/sdk/anyscale_client/models/__init__.py +0 -11
  22. anyscale/sdk/anyscale_client/models/cloud.py +31 -3
  23. anyscale/service/__init__.py +4 -1
  24. anyscale/service/_private/service_sdk.py +5 -0
  25. anyscale/service/commands.py +4 -2
  26. anyscale/version.py +1 -1
  27. {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/METADATA +1 -1
  28. {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/RECORD +33 -48
  29. anyscale/client/openapi_client/models/serve_deployment_fast_api_docs_status.py +0 -123
  30. anyscale/client/openapi_client/models/servedeploymentfastapidocsstatus_response.py +0 -121
  31. anyscale/client/openapi_client/models/web_terminal.py +0 -121
  32. anyscale/client/openapi_client/models/webterminal_response.py +0 -121
  33. anyscale/sdk/anyscale_client/models/cluster_environment_build_log_response.py +0 -123
  34. anyscale/sdk/anyscale_client/models/clusterenvironmentbuildlogresponse_response.py +0 -121
  35. anyscale/sdk/anyscale_client/models/create_cloud.py +0 -518
  36. anyscale/sdk/anyscale_client/models/object_storage_config.py +0 -122
  37. anyscale/sdk/anyscale_client/models/object_storage_config_s3.py +0 -256
  38. anyscale/sdk/anyscale_client/models/objectstorageconfig_response.py +0 -121
  39. anyscale/sdk/anyscale_client/models/session_operation.py +0 -266
  40. anyscale/sdk/anyscale_client/models/session_operation_type.py +0 -101
  41. anyscale/sdk/anyscale_client/models/sessionoperation_response.py +0 -121
  42. anyscale/sdk/anyscale_client/models/update_cloud.py +0 -150
  43. anyscale/sdk/anyscale_client/models/update_project.py +0 -150
  44. {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/LICENSE +0 -0
  45. {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/NOTICE +0 -0
  46. {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/WHEEL +0 -0
  47. {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/entry_points.txt +0 -0
  48. {anyscale-0.26.27.dist-info → anyscale-0.26.29.dist-info}/top_level.txt +0 -0
@@ -113,8 +113,9 @@ def describe(name: str, format_: str) -> None:
113
113
  "PARTITION",
114
114
  "STATE",
115
115
  "WORKLOAD DETAILS",
116
- "WORKLOAD SCORE",
117
116
  "WORKLOAD START TIME",
117
+ "WORKLOAD CREATOR",
118
+ "WORKLOAD SCORE",
118
119
  "CLOUD INSTANCE ID",
119
120
  ]
120
121
  for row in scheduler_info.machines:
@@ -124,13 +125,16 @@ def describe(name: str, format_: str) -> None:
124
125
  row.machine_type,
125
126
  row.partition,
126
127
  row.allocation_state,
127
- f"{row.workload_info.workload_type}/{row.workload_info.workload_name}/{row.workload_info.workload_cloud}"
128
+ f"{row.workload_info.workload_type}/{row.workload_info.workload_name}/{row.workload_info.workload_project}/{row.workload_info.workload_cloud}"
128
129
  if row.workload_info.workload_name
129
130
  else "",
130
- row.workload_score,
131
131
  format_time(row.workload_info.workload_start_time)
132
132
  if row.workload_info.workload_name
133
133
  else "",
134
+ row.workload_info.workload_creator
135
+ if row.workload_info.workload_name
136
+ else "",
137
+ row.workload_score,
134
138
  row.cloud_instance_id,
135
139
  ]
136
140
  )
@@ -151,7 +155,7 @@ def describe(name: str, format_: str) -> None:
151
155
  "MACHINE TYPE",
152
156
  "WORKLOAD DETAILS",
153
157
  "WORKLOAD START TIME",
154
- "WORKLOAD CLOUD",
158
+ "WORKLOAD CREATOR",
155
159
  "PARTITION SCORES",
156
160
  ]
157
161
  for row in scheduler_info.requests:
@@ -159,11 +163,9 @@ def describe(name: str, format_: str) -> None:
159
163
  [
160
164
  row.size,
161
165
  row.machine_type,
162
- f"{row.workload_info.workload_type}/{row.workload_info.workload_name}",
163
- format_time(row.workload_info.workload_start_time)
164
- if row.workload_info.workload_name
165
- else "",
166
- row.workload_info.workload_cloud,
166
+ f"{row.workload_info.workload_type}/{row.workload_info.workload_name}/{row.workload_info.workload_project}/{row.workload_info.workload_cloud}",
167
+ format_time(row.workload_info.workload_start_time),
168
+ row.workload_info.workload_creator,
167
169
  row.partition_scores,
168
170
  ]
169
171
  )
@@ -159,7 +159,7 @@ def _read_name_from_config_file(path: str):
159
159
  required=False,
160
160
  default=None,
161
161
  type=int,
162
- help="The percentage of traffic to send to the canary version of the service (0-100). This can be used to manually shift traffic toward (or away from) the canary version. If not provided, traffic will be shifted incrementally toward the canary version until it reaches 100. Not supported when using --in-place.",
162
+ help="The percentage of traffic to send to the canary version of the service (0-100). This can be used to manually shift traffic toward (or away from) the canary version. If not provided, traffic will be shifted incrementally toward the canary version until it reaches 100. Not supported when using --in-place. This is ignored when restarting a service or creating a new service.",
163
163
  )
164
164
  @click.option(
165
165
  "--max-surge-percent",
@@ -967,6 +967,8 @@ def terminate(
967
967
 
968
968
  This applies to both v1 and v2 services.
969
969
  """
970
+ # TODO: Remove service_controller and use the sdk method. Need to update the sdk method
971
+ # so that it can resolve either service name or config file to the service id.
970
972
  service_controller = ServiceController()
971
973
  service_id = service_controller.get_service_id(
972
974
  service_id=service_id,
@@ -975,7 +977,7 @@ def terminate(
975
977
  project_id=project_id,
976
978
  )
977
979
  try:
978
- anyscale.service.terminate(service_id)
980
+ anyscale.service.terminate(id=service_id)
979
981
  log.info(f"Service {service_id} terminate initiated.")
980
982
  log.info(
981
983
  f'View the service in the UI at {get_endpoint(f"/services/{service_id}")}'
@@ -197,7 +197,6 @@ class CloudController(BaseController):
197
197
  ]
198
198
  else:
199
199
  clouds = self.api_client.list_clouds_api_v2_clouds_get().results
200
-
201
200
  clouds_output = clouds[:max_items]
202
201
  output = clouds_formatter.format_clouds_output(
203
202
  clouds=clouds_output, json_format=False
@@ -20,6 +20,8 @@ def format_clouds_output(clouds: List[Cloud], json_format: bool) -> str:
20
20
  def format_clouds_output_json(clouds: List[Cloud]) -> str:
21
21
  cloud_jsons = []
22
22
  for cloud in clouds:
23
+ # Check if log ingestion is enabled based on is_aggregated_logs_enabled field
24
+ log_ingestion_enabled = getattr(cloud, "is_aggregated_logs_enabled", False)
23
25
  cloud_jsons.append(
24
26
  {
25
27
  "id": cloud.id,
@@ -29,6 +31,7 @@ def format_clouds_output_json(clouds: List[Cloud]) -> str:
29
31
  "added_date": cloud.created_at.strftime("%m/%d/%Y"),
30
32
  "default": cloud.is_default,
31
33
  "credentials": cloud.credentials,
34
+ "log_ingestion": "enabled" if log_ingestion_enabled else "disabled",
32
35
  }
33
36
  )
34
37
  return json.dumps(cloud_jsons)
@@ -37,6 +40,9 @@ def format_clouds_output_json(clouds: List[Cloud]) -> str:
37
40
  def format_clouds_output_table(clouds: List[Cloud]) -> str:
38
41
  table_rows = []
39
42
  for cloud in clouds:
43
+ # Check if log ingestion is enabled based on is_aggregated_logs_enabled field
44
+ log_ingestion_enabled = getattr(cloud, "is_aggregated_logs_enabled", False)
45
+ log_ingestion_status = "enabled" if log_ingestion_enabled else "disabled"
40
46
  table_rows.append(
41
47
  [
42
48
  cloud.id,
@@ -46,6 +52,7 @@ def format_clouds_output_table(clouds: List[Cloud]) -> str:
46
52
  cloud.created_at.strftime("%m/%d/%Y"),
47
53
  cloud.is_default,
48
54
  cloud.credentials,
55
+ log_ingestion_status,
49
56
  ]
50
57
  )
51
58
  table = tabulate.tabulate(
@@ -58,6 +65,7 @@ def format_clouds_output_table(clouds: List[Cloud]) -> str:
58
65
  "ADDED DATE",
59
66
  "DEFAULT",
60
67
  "CREDENTIALS",
68
+ "LOG INGESTION",
61
69
  ],
62
70
  tablefmt="plain",
63
71
  )
@@ -58,7 +58,6 @@ from anyscale_client.models.cluster_compute_config import ClusterComputeConfig
58
58
  from anyscale_client.models.cluster_computes_query import ClusterComputesQuery
59
59
  from anyscale_client.models.cluster_environment import ClusterEnvironment
60
60
  from anyscale_client.models.cluster_environment_build import ClusterEnvironmentBuild
61
- from anyscale_client.models.cluster_environment_build_log_response import ClusterEnvironmentBuildLogResponse
62
61
  from anyscale_client.models.cluster_environment_build_operation import ClusterEnvironmentBuildOperation
63
62
  from anyscale_client.models.cluster_environment_build_status import ClusterEnvironmentBuildStatus
64
63
  from anyscale_client.models.cluster_environments_query import ClusterEnvironmentsQuery
@@ -78,7 +77,6 @@ from anyscale_client.models.clusterenvironment_list_response import Clusterenvir
78
77
  from anyscale_client.models.clusterenvironment_response import ClusterenvironmentResponse
79
78
  from anyscale_client.models.clusterenvironmentbuild_list_response import ClusterenvironmentbuildListResponse
80
79
  from anyscale_client.models.clusterenvironmentbuild_response import ClusterenvironmentbuildResponse
81
- from anyscale_client.models.clusterenvironmentbuildlogresponse_response import ClusterenvironmentbuildlogresponseResponse
82
80
  from anyscale_client.models.clusterenvironmentbuildoperation_response import ClusterenvironmentbuildoperationResponse
83
81
  from anyscale_client.models.clusteroperation_response import ClusteroperationResponse
84
82
  from anyscale_client.models.clusters_query import ClustersQuery
@@ -93,7 +91,6 @@ from anyscale_client.models.create_byod_app_config_configuration_schema import C
93
91
  from anyscale_client.models.create_byod_cluster_environment import CreateBYODClusterEnvironment
94
92
  from anyscale_client.models.create_byod_cluster_environment_build import CreateBYODClusterEnvironmentBuild
95
93
  from anyscale_client.models.create_byod_cluster_environment_configuration_schema import CreateBYODClusterEnvironmentConfigurationSchema
96
- from anyscale_client.models.create_cloud import CreateCloud
97
94
  from anyscale_client.models.create_cluster import CreateCluster
98
95
  from anyscale_client.models.create_cluster_compute import CreateClusterCompute
99
96
  from anyscale_client.models.create_cluster_compute_config import CreateClusterComputeConfig
@@ -130,9 +127,6 @@ from anyscale_client.models.log_stream import LogStream
130
127
  from anyscale_client.models.logdownloadresult_response import LogdownloadresultResponse
131
128
  from anyscale_client.models.logstream_response import LogstreamResponse
132
129
  from anyscale_client.models.node_type import NodeType
133
- from anyscale_client.models.object_storage_config import ObjectStorageConfig
134
- from anyscale_client.models.object_storage_config_s3 import ObjectStorageConfigS3
135
- from anyscale_client.models.objectstorageconfig_response import ObjectstorageconfigResponse
136
130
  from anyscale_client.models.operation_error import OperationError
137
131
  from anyscale_client.models.operation_progress import OperationProgress
138
132
  from anyscale_client.models.operation_result import OperationResult
@@ -178,14 +172,11 @@ from anyscale_client.models.service_version_state import ServiceVersionState
178
172
  from anyscale_client.models.servicemodel_list_response import ServicemodelListResponse
179
173
  from anyscale_client.models.servicemodel_response import ServicemodelResponse
180
174
  from anyscale_client.models.session import Session
181
- from anyscale_client.models.session_operation import SessionOperation
182
- from anyscale_client.models.session_operation_type import SessionOperationType
183
175
  from anyscale_client.models.session_response import SessionResponse
184
176
  from anyscale_client.models.session_starting_up_data import SessionStartingUpData
185
177
  from anyscale_client.models.session_state import SessionState
186
178
  from anyscale_client.models.session_state_data import SessionStateData
187
179
  from anyscale_client.models.session_stopping_data import SessionStoppingData
188
- from anyscale_client.models.sessionoperation_response import SessionoperationResponse
189
180
  from anyscale_client.models.sort_by_clause_jobs_sort_field import SortByClauseJobsSortField
190
181
  from anyscale_client.models.sort_order import SortOrder
191
182
  from anyscale_client.models.ssoconfig_response import SsoconfigResponse
@@ -196,10 +187,8 @@ from anyscale_client.models.terminate_cluster_options import TerminateClusterOpt
196
187
  from anyscale_client.models.text_query import TextQuery
197
188
  from anyscale_client.models.tracing_config import TracingConfig
198
189
  from anyscale_client.models.ux_instance import UXInstance
199
- from anyscale_client.models.update_cloud import UpdateCloud
200
190
  from anyscale_client.models.update_cluster import UpdateCluster
201
191
  from anyscale_client.models.update_organization import UpdateOrganization
202
- from anyscale_client.models.update_project import UpdateProject
203
192
  from anyscale_client.models.user_service_access_types import UserServiceAccessTypes
204
193
  from anyscale_client.models.validation_error import ValidationError
205
194
  from anyscale_client.models.worker_node_type import WorkerNodeType