anyscale 0.26.28__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.
- anyscale/_private/docgen/__main__.py +0 -18
- anyscale/_private/docgen/api.md +0 -125
- anyscale/_private/docgen/models.md +0 -111
- anyscale/client/README.md +0 -6
- anyscale/client/openapi_client/__init__.py +0 -4
- anyscale/client/openapi_client/api/default_api.py +0 -228
- anyscale/client/openapi_client/models/__init__.py +0 -4
- anyscale/client/openapi_client/models/workload_info.py +59 -3
- anyscale/commands/machine_pool_commands.py +11 -9
- anyscale/commands/service_commands.py +4 -2
- anyscale/sdk/anyscale_client/__init__.py +0 -11
- anyscale/sdk/anyscale_client/api/default_api.py +140 -1433
- anyscale/sdk/anyscale_client/models/__init__.py +0 -11
- anyscale/service/__init__.py +4 -1
- anyscale/service/_private/service_sdk.py +5 -0
- anyscale/service/commands.py +4 -2
- anyscale/version.py +1 -1
- {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/METADATA +1 -1
- {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/RECORD +24 -39
- anyscale/client/openapi_client/models/serve_deployment_fast_api_docs_status.py +0 -123
- anyscale/client/openapi_client/models/servedeploymentfastapidocsstatus_response.py +0 -121
- anyscale/client/openapi_client/models/web_terminal.py +0 -121
- anyscale/client/openapi_client/models/webterminal_response.py +0 -121
- anyscale/sdk/anyscale_client/models/cluster_environment_build_log_response.py +0 -123
- anyscale/sdk/anyscale_client/models/clusterenvironmentbuildlogresponse_response.py +0 -121
- anyscale/sdk/anyscale_client/models/create_cloud.py +0 -518
- anyscale/sdk/anyscale_client/models/object_storage_config.py +0 -122
- anyscale/sdk/anyscale_client/models/object_storage_config_s3.py +0 -256
- anyscale/sdk/anyscale_client/models/objectstorageconfig_response.py +0 -121
- anyscale/sdk/anyscale_client/models/session_operation.py +0 -266
- anyscale/sdk/anyscale_client/models/session_operation_type.py +0 -101
- anyscale/sdk/anyscale_client/models/sessionoperation_response.py +0 -121
- anyscale/sdk/anyscale_client/models/update_cloud.py +0 -150
- anyscale/sdk/anyscale_client/models/update_project.py +0 -150
- {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/LICENSE +0 -0
- {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/NOTICE +0 -0
- {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/WHEEL +0 -0
- {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/top_level.txt +0 -0
@@ -6290,120 +6290,6 @@ class DefaultApi(object):
|
|
6290
6290
|
_request_timeout=local_var_params.get('_request_timeout'),
|
6291
6291
|
collection_formats=collection_formats)
|
6292
6292
|
|
6293
|
-
def create_web_terminal_api_v2_sessions_session_id_web_terminals_post(self, session_id, **kwargs): # noqa: E501
|
6294
|
-
"""Create Web Terminal # noqa: E501
|
6295
|
-
|
6296
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
6297
|
-
This method makes a synchronous HTTP request by default. To make an
|
6298
|
-
asynchronous HTTP request, please pass async_req=True
|
6299
|
-
>>> thread = api.create_web_terminal_api_v2_sessions_session_id_web_terminals_post(session_id, async_req=True)
|
6300
|
-
>>> result = thread.get()
|
6301
|
-
|
6302
|
-
:param async_req bool: execute request asynchronously
|
6303
|
-
:param str session_id: (required)
|
6304
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6305
|
-
be returned without reading/decoding response
|
6306
|
-
data. Default is True.
|
6307
|
-
:param _request_timeout: timeout setting for this request. If one
|
6308
|
-
number provided, it will be total request
|
6309
|
-
timeout. It can also be a pair (tuple) of
|
6310
|
-
(connection, read) timeouts.
|
6311
|
-
:return: WebterminalResponse
|
6312
|
-
If the method is called asynchronously,
|
6313
|
-
returns the request thread.
|
6314
|
-
"""
|
6315
|
-
kwargs['_return_http_data_only'] = True
|
6316
|
-
return self.create_web_terminal_api_v2_sessions_session_id_web_terminals_post_with_http_info(session_id, **kwargs) # noqa: E501
|
6317
|
-
|
6318
|
-
def create_web_terminal_api_v2_sessions_session_id_web_terminals_post_with_http_info(self, session_id, **kwargs): # noqa: E501
|
6319
|
-
"""Create Web Terminal # noqa: E501
|
6320
|
-
|
6321
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
6322
|
-
This method makes a synchronous HTTP request by default. To make an
|
6323
|
-
asynchronous HTTP request, please pass async_req=True
|
6324
|
-
>>> thread = api.create_web_terminal_api_v2_sessions_session_id_web_terminals_post_with_http_info(session_id, async_req=True)
|
6325
|
-
>>> result = thread.get()
|
6326
|
-
|
6327
|
-
:param async_req bool: execute request asynchronously
|
6328
|
-
:param str session_id: (required)
|
6329
|
-
:param _return_http_data_only: response data without head status code
|
6330
|
-
and headers
|
6331
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6332
|
-
be returned without reading/decoding response
|
6333
|
-
data. Default is True.
|
6334
|
-
:param _request_timeout: timeout setting for this request. If one
|
6335
|
-
number provided, it will be total request
|
6336
|
-
timeout. It can also be a pair (tuple) of
|
6337
|
-
(connection, read) timeouts.
|
6338
|
-
:return: tuple(WebterminalResponse, status_code(int), headers(HTTPHeaderDict))
|
6339
|
-
If the method is called asynchronously,
|
6340
|
-
returns the request thread.
|
6341
|
-
"""
|
6342
|
-
|
6343
|
-
local_var_params = locals()
|
6344
|
-
|
6345
|
-
all_params = [
|
6346
|
-
'session_id'
|
6347
|
-
]
|
6348
|
-
all_params.extend(
|
6349
|
-
[
|
6350
|
-
'async_req',
|
6351
|
-
'_return_http_data_only',
|
6352
|
-
'_preload_content',
|
6353
|
-
'_request_timeout'
|
6354
|
-
]
|
6355
|
-
)
|
6356
|
-
|
6357
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
6358
|
-
if key not in all_params:
|
6359
|
-
raise ApiTypeError(
|
6360
|
-
"Got an unexpected keyword argument '%s'"
|
6361
|
-
" to method create_web_terminal_api_v2_sessions_session_id_web_terminals_post" % key
|
6362
|
-
)
|
6363
|
-
local_var_params[key] = val
|
6364
|
-
del local_var_params['kwargs']
|
6365
|
-
# verify the required parameter 'session_id' is set
|
6366
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
6367
|
-
local_var_params['session_id'] is None): # noqa: E501
|
6368
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `create_web_terminal_api_v2_sessions_session_id_web_terminals_post`") # noqa: E501
|
6369
|
-
|
6370
|
-
collection_formats = {}
|
6371
|
-
|
6372
|
-
path_params = {}
|
6373
|
-
if 'session_id' in local_var_params:
|
6374
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
6375
|
-
|
6376
|
-
query_params = []
|
6377
|
-
|
6378
|
-
header_params = {}
|
6379
|
-
|
6380
|
-
form_params = []
|
6381
|
-
local_var_files = {}
|
6382
|
-
|
6383
|
-
body_params = None
|
6384
|
-
# HTTP header `Accept`
|
6385
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
6386
|
-
['application/json']) # noqa: E501
|
6387
|
-
|
6388
|
-
# Authentication setting
|
6389
|
-
auth_settings = [] # noqa: E501
|
6390
|
-
|
6391
|
-
return self.api_client.call_api(
|
6392
|
-
'/api/v2/sessions/{session_id}/web_terminals', 'POST',
|
6393
|
-
path_params,
|
6394
|
-
query_params,
|
6395
|
-
header_params,
|
6396
|
-
body=body_params,
|
6397
|
-
post_params=form_params,
|
6398
|
-
files=local_var_files,
|
6399
|
-
response_type='WebterminalResponse', # noqa: E501
|
6400
|
-
auth_settings=auth_settings,
|
6401
|
-
async_req=local_var_params.get('async_req'),
|
6402
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
6403
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
6404
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
6405
|
-
collection_formats=collection_formats)
|
6406
|
-
|
6407
6293
|
def create_workspace_api_v2_experimental_workspaces_post(self, create_experimental_workspace, **kwargs): # noqa: E501
|
6408
6294
|
"""Create Workspace # noqa: E501
|
6409
6295
|
|
@@ -13823,120 +13709,6 @@ class DefaultApi(object):
|
|
13823
13709
|
_request_timeout=local_var_params.get('_request_timeout'),
|
13824
13710
|
collection_formats=collection_formats)
|
13825
13711
|
|
13826
|
-
def get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get(self, serve_deployment_id, **kwargs): # noqa: E501
|
13827
|
-
"""Get Decorated Serve Deployment Fast Api Docs Status # noqa: E501
|
13828
|
-
|
13829
|
-
Check if the fast api docs url is healthy # noqa: E501
|
13830
|
-
This method makes a synchronous HTTP request by default. To make an
|
13831
|
-
asynchronous HTTP request, please pass async_req=True
|
13832
|
-
>>> thread = api.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get(serve_deployment_id, async_req=True)
|
13833
|
-
>>> result = thread.get()
|
13834
|
-
|
13835
|
-
:param async_req bool: execute request asynchronously
|
13836
|
-
:param str serve_deployment_id: (required)
|
13837
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
13838
|
-
be returned without reading/decoding response
|
13839
|
-
data. Default is True.
|
13840
|
-
:param _request_timeout: timeout setting for this request. If one
|
13841
|
-
number provided, it will be total request
|
13842
|
-
timeout. It can also be a pair (tuple) of
|
13843
|
-
(connection, read) timeouts.
|
13844
|
-
:return: ServedeploymentfastapidocsstatusResponse
|
13845
|
-
If the method is called asynchronously,
|
13846
|
-
returns the request thread.
|
13847
|
-
"""
|
13848
|
-
kwargs['_return_http_data_only'] = True
|
13849
|
-
return self.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(serve_deployment_id, **kwargs) # noqa: E501
|
13850
|
-
|
13851
|
-
def get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(self, serve_deployment_id, **kwargs): # noqa: E501
|
13852
|
-
"""Get Decorated Serve Deployment Fast Api Docs Status # noqa: E501
|
13853
|
-
|
13854
|
-
Check if the fast api docs url is healthy # noqa: E501
|
13855
|
-
This method makes a synchronous HTTP request by default. To make an
|
13856
|
-
asynchronous HTTP request, please pass async_req=True
|
13857
|
-
>>> thread = api.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(serve_deployment_id, async_req=True)
|
13858
|
-
>>> result = thread.get()
|
13859
|
-
|
13860
|
-
:param async_req bool: execute request asynchronously
|
13861
|
-
:param str serve_deployment_id: (required)
|
13862
|
-
:param _return_http_data_only: response data without head status code
|
13863
|
-
and headers
|
13864
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
13865
|
-
be returned without reading/decoding response
|
13866
|
-
data. Default is True.
|
13867
|
-
:param _request_timeout: timeout setting for this request. If one
|
13868
|
-
number provided, it will be total request
|
13869
|
-
timeout. It can also be a pair (tuple) of
|
13870
|
-
(connection, read) timeouts.
|
13871
|
-
:return: tuple(ServedeploymentfastapidocsstatusResponse, status_code(int), headers(HTTPHeaderDict))
|
13872
|
-
If the method is called asynchronously,
|
13873
|
-
returns the request thread.
|
13874
|
-
"""
|
13875
|
-
|
13876
|
-
local_var_params = locals()
|
13877
|
-
|
13878
|
-
all_params = [
|
13879
|
-
'serve_deployment_id'
|
13880
|
-
]
|
13881
|
-
all_params.extend(
|
13882
|
-
[
|
13883
|
-
'async_req',
|
13884
|
-
'_return_http_data_only',
|
13885
|
-
'_preload_content',
|
13886
|
-
'_request_timeout'
|
13887
|
-
]
|
13888
|
-
)
|
13889
|
-
|
13890
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
13891
|
-
if key not in all_params:
|
13892
|
-
raise ApiTypeError(
|
13893
|
-
"Got an unexpected keyword argument '%s'"
|
13894
|
-
" to method get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get" % key
|
13895
|
-
)
|
13896
|
-
local_var_params[key] = val
|
13897
|
-
del local_var_params['kwargs']
|
13898
|
-
# verify the required parameter 'serve_deployment_id' is set
|
13899
|
-
if self.api_client.client_side_validation and ('serve_deployment_id' not in local_var_params or # noqa: E501
|
13900
|
-
local_var_params['serve_deployment_id'] is None): # noqa: E501
|
13901
|
-
raise ApiValueError("Missing the required parameter `serve_deployment_id` when calling `get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get`") # noqa: E501
|
13902
|
-
|
13903
|
-
collection_formats = {}
|
13904
|
-
|
13905
|
-
path_params = {}
|
13906
|
-
if 'serve_deployment_id' in local_var_params:
|
13907
|
-
path_params['serve_deployment_id'] = local_var_params['serve_deployment_id'] # noqa: E501
|
13908
|
-
|
13909
|
-
query_params = []
|
13910
|
-
|
13911
|
-
header_params = {}
|
13912
|
-
|
13913
|
-
form_params = []
|
13914
|
-
local_var_files = {}
|
13915
|
-
|
13916
|
-
body_params = None
|
13917
|
-
# HTTP header `Accept`
|
13918
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
13919
|
-
['application/json']) # noqa: E501
|
13920
|
-
|
13921
|
-
# Authentication setting
|
13922
|
-
auth_settings = [] # noqa: E501
|
13923
|
-
|
13924
|
-
return self.api_client.call_api(
|
13925
|
-
'/api/v2/decorated_serve_deployments/{serve_deployment_id}/fast_api_docs_status', 'GET',
|
13926
|
-
path_params,
|
13927
|
-
query_params,
|
13928
|
-
header_params,
|
13929
|
-
body=body_params,
|
13930
|
-
post_params=form_params,
|
13931
|
-
files=local_var_files,
|
13932
|
-
response_type='ServedeploymentfastapidocsstatusResponse', # noqa: E501
|
13933
|
-
auth_settings=auth_settings,
|
13934
|
-
async_req=local_var_params.get('async_req'),
|
13935
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
13936
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
13937
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
13938
|
-
collection_formats=collection_formats)
|
13939
|
-
|
13940
13712
|
def get_decorated_support_request_for_user_organization_api_v2_support_requests_get(self, **kwargs): # noqa: E501
|
13941
13713
|
"""Get Decorated Support Request For User Organization # noqa: E501
|
13942
13714
|
|
@@ -463,10 +463,8 @@ from openapi_client.models.sso_mode import SSOMode
|
|
463
463
|
from openapi_client.models.supportedbaseimagesenum import SUPPORTEDBASEIMAGESENUM
|
464
464
|
from openapi_client.models.schedule_config import ScheduleConfig
|
465
465
|
from openapi_client.models.scheduler_info import SchedulerInfo
|
466
|
-
from openapi_client.models.serve_deployment_fast_api_docs_status import ServeDeploymentFastApiDocsStatus
|
467
466
|
from openapi_client.models.serve_deployment_grafana_dashboard_status import ServeDeploymentGrafanaDashboardStatus
|
468
467
|
from openapi_client.models.serve_deployment_state import ServeDeploymentState
|
469
|
-
from openapi_client.models.servedeploymentfastapidocsstatus_response import ServedeploymentfastapidocsstatusResponse
|
470
468
|
from openapi_client.models.server_session_token import ServerSessionToken
|
471
469
|
from openapi_client.models.serversessiontoken_response import ServersessiontokenResponse
|
472
470
|
from openapi_client.models.service_config import ServiceConfig
|
@@ -571,8 +569,6 @@ from openapi_client.models.waitlist_status_response import WaitlistStatusRespons
|
|
571
569
|
from openapi_client.models.waitlist_status_type import WaitlistStatusType
|
572
570
|
from openapi_client.models.waitliststatusresponse_response import WaitliststatusresponseResponse
|
573
571
|
from openapi_client.models.wand_b_run_details import WandBRunDetails
|
574
|
-
from openapi_client.models.web_terminal import WebTerminal
|
575
|
-
from openapi_client.models.webterminal_response import WebterminalResponse
|
576
572
|
from openapi_client.models.worker_node_type import WorkerNodeType
|
577
573
|
from openapi_client.models.workload_info import WorkloadInfo
|
578
574
|
from openapi_client.models.workload_type import WorkloadType
|
@@ -36,17 +36,21 @@ class WorkloadInfo(object):
|
|
36
36
|
'workload_name': 'str',
|
37
37
|
'workload_type': 'str',
|
38
38
|
'workload_start_time': 'datetime',
|
39
|
-
'workload_cloud': 'str'
|
39
|
+
'workload_cloud': 'str',
|
40
|
+
'workload_project': 'str',
|
41
|
+
'workload_creator': 'str'
|
40
42
|
}
|
41
43
|
|
42
44
|
attribute_map = {
|
43
45
|
'workload_name': 'workload_name',
|
44
46
|
'workload_type': 'workload_type',
|
45
47
|
'workload_start_time': 'workload_start_time',
|
46
|
-
'workload_cloud': 'workload_cloud'
|
48
|
+
'workload_cloud': 'workload_cloud',
|
49
|
+
'workload_project': 'workload_project',
|
50
|
+
'workload_creator': 'workload_creator'
|
47
51
|
}
|
48
52
|
|
49
|
-
def __init__(self, workload_name=None, workload_type=None, workload_start_time=None, workload_cloud=None, local_vars_configuration=None): # noqa: E501
|
53
|
+
def __init__(self, workload_name=None, workload_type=None, workload_start_time=None, workload_cloud=None, workload_project='', workload_creator='', local_vars_configuration=None): # noqa: E501
|
50
54
|
"""WorkloadInfo - a model defined in OpenAPI""" # noqa: E501
|
51
55
|
if local_vars_configuration is None:
|
52
56
|
local_vars_configuration = Configuration()
|
@@ -56,12 +60,18 @@ class WorkloadInfo(object):
|
|
56
60
|
self._workload_type = None
|
57
61
|
self._workload_start_time = None
|
58
62
|
self._workload_cloud = None
|
63
|
+
self._workload_project = None
|
64
|
+
self._workload_creator = None
|
59
65
|
self.discriminator = None
|
60
66
|
|
61
67
|
self.workload_name = workload_name
|
62
68
|
self.workload_type = workload_type
|
63
69
|
self.workload_start_time = workload_start_time
|
64
70
|
self.workload_cloud = workload_cloud
|
71
|
+
if workload_project is not None:
|
72
|
+
self.workload_project = workload_project
|
73
|
+
if workload_creator is not None:
|
74
|
+
self.workload_creator = workload_creator
|
65
75
|
|
66
76
|
@property
|
67
77
|
def workload_name(self):
|
@@ -163,6 +173,52 @@ class WorkloadInfo(object):
|
|
163
173
|
|
164
174
|
self._workload_cloud = workload_cloud
|
165
175
|
|
176
|
+
@property
|
177
|
+
def workload_project(self):
|
178
|
+
"""Gets the workload_project of this WorkloadInfo. # noqa: E501
|
179
|
+
|
180
|
+
The project of the workload. # noqa: E501
|
181
|
+
|
182
|
+
:return: The workload_project of this WorkloadInfo. # noqa: E501
|
183
|
+
:rtype: str
|
184
|
+
"""
|
185
|
+
return self._workload_project
|
186
|
+
|
187
|
+
@workload_project.setter
|
188
|
+
def workload_project(self, workload_project):
|
189
|
+
"""Sets the workload_project of this WorkloadInfo.
|
190
|
+
|
191
|
+
The project of the workload. # noqa: E501
|
192
|
+
|
193
|
+
:param workload_project: The workload_project of this WorkloadInfo. # noqa: E501
|
194
|
+
:type: str
|
195
|
+
"""
|
196
|
+
|
197
|
+
self._workload_project = workload_project
|
198
|
+
|
199
|
+
@property
|
200
|
+
def workload_creator(self):
|
201
|
+
"""Gets the workload_creator of this WorkloadInfo. # noqa: E501
|
202
|
+
|
203
|
+
The creator of the workload. # noqa: E501
|
204
|
+
|
205
|
+
:return: The workload_creator of this WorkloadInfo. # noqa: E501
|
206
|
+
:rtype: str
|
207
|
+
"""
|
208
|
+
return self._workload_creator
|
209
|
+
|
210
|
+
@workload_creator.setter
|
211
|
+
def workload_creator(self, workload_creator):
|
212
|
+
"""Sets the workload_creator of this WorkloadInfo.
|
213
|
+
|
214
|
+
The creator of the workload. # noqa: E501
|
215
|
+
|
216
|
+
:param workload_creator: The workload_creator of this WorkloadInfo. # noqa: E501
|
217
|
+
:type: str
|
218
|
+
"""
|
219
|
+
|
220
|
+
self._workload_creator = workload_creator
|
221
|
+
|
166
222
|
def to_dict(self):
|
167
223
|
"""Returns the model properties as a dict"""
|
168
224
|
result = {}
|
@@ -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
|
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
|
-
|
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}")}'
|
@@ -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
|