anyscale 0.26.2__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.
- anyscale/_private/docgen/models.md +2 -1
- anyscale/_private/workload/workload_config.py +11 -0
- anyscale/_private/workload/workload_sdk.py +4 -0
- anyscale/client/README.md +3 -43
- anyscale/client/openapi_client/__init__.py +0 -26
- anyscale/client/openapi_client/api/default_api.py +368 -2030
- anyscale/client/openapi_client/models/__init__.py +0 -26
- anyscale/client/openapi_client/models/node_type.py +2 -1
- anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
- anyscale/client/openapi_client/models/train_run.py +29 -3
- anyscale/client/openapi_client/models/train_worker.py +29 -3
- anyscale/job/_private/job_sdk.py +4 -0
- anyscale/sdk/anyscale_client/models/node_type.py +2 -1
- anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +29 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/METADATA +1 -1
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/RECORD +22 -48
- anyscale/client/openapi_client/models/aica_endpoint.py +0 -527
- anyscale/client/openapi_client/models/aica_endpoint_event.py +0 -433
- anyscale/client/openapi_client/models/aica_endpoint_event_level.py +0 -103
- anyscale/client/openapi_client/models/aica_endpoint_event_type.py +0 -120
- anyscale/client/openapi_client/models/aica_endpoint_scope.py +0 -102
- anyscale/client/openapi_client/models/aica_model.py +0 -398
- anyscale/client/openapi_client/models/aica_model_accelerator_map.py +0 -123
- anyscale/client/openapi_client/models/aica_model_configuration.py +0 -209
- anyscale/client/openapi_client/models/aica_observability_urls.py +0 -178
- anyscale/client/openapi_client/models/aicaendpoint_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicaendpoint_response.py +0 -121
- anyscale/client/openapi_client/models/aicaendpointevent_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicamodel_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicamodel_response.py +0 -121
- anyscale/client/openapi_client/models/aws_credentials.py +0 -181
- anyscale/client/openapi_client/models/create_aica_endpoint.py +0 -210
- anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
- anyscale/client/openapi_client/models/import_aica_model.py +0 -241
- anyscale/client/openapi_client/models/log_detail.py +0 -187
- anyscale/client/openapi_client/models/log_details.py +0 -151
- anyscale/client/openapi_client/models/logdetails_response.py +0 -121
- anyscale/client/openapi_client/models/named_entity.py +0 -148
- anyscale/client/openapi_client/models/provider_metadata.py +0 -205
- anyscale/client/openapi_client/models/providermetadata_response.py +0 -121
- anyscale/client/openapi_client/models/update_endpoint.py +0 -152
- anyscale/client/openapi_client/models/update_model_deployment.py +0 -152
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/LICENSE +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/NOTICE +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/WHEEL +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/top_level.txt +0 -0
@@ -14,7 +14,6 @@
|
|
14
14
|
from __future__ import absolute_import
|
15
15
|
|
16
16
|
# import models into model package
|
17
|
-
from openapi_client.models.aws_credentials import AWSCredentials
|
18
17
|
from openapi_client.models.aws_memory_db_cluster_config import AWSMemoryDBClusterConfig
|
19
18
|
from openapi_client.models.access_config import AccessConfig
|
20
19
|
from openapi_client.models.actor_status import ActorStatus
|
@@ -26,20 +25,6 @@ from openapi_client.models.aggregated_usage import AggregatedUsage
|
|
26
25
|
from openapi_client.models.aggregated_usage_query import AggregatedUsageQuery
|
27
26
|
from openapi_client.models.aggregatedinstanceusagecsv_list_response import AggregatedinstanceusagecsvListResponse
|
28
27
|
from openapi_client.models.aggregatedusage_response import AggregatedusageResponse
|
29
|
-
from openapi_client.models.aica_endpoint import AicaEndpoint
|
30
|
-
from openapi_client.models.aica_endpoint_event import AicaEndpointEvent
|
31
|
-
from openapi_client.models.aica_endpoint_event_level import AicaEndpointEventLevel
|
32
|
-
from openapi_client.models.aica_endpoint_event_type import AicaEndpointEventType
|
33
|
-
from openapi_client.models.aica_endpoint_scope import AicaEndpointScope
|
34
|
-
from openapi_client.models.aica_model import AicaModel
|
35
|
-
from openapi_client.models.aica_model_accelerator_map import AicaModelAcceleratorMap
|
36
|
-
from openapi_client.models.aica_model_configuration import AicaModelConfiguration
|
37
|
-
from openapi_client.models.aica_observability_urls import AicaObservabilityUrls
|
38
|
-
from openapi_client.models.aicaendpoint_list_response import AicaendpointListResponse
|
39
|
-
from openapi_client.models.aicaendpoint_response import AicaendpointResponse
|
40
|
-
from openapi_client.models.aicaendpointevent_list_response import AicaendpointeventListResponse
|
41
|
-
from openapi_client.models.aicamodel_list_response import AicamodelListResponse
|
42
|
-
from openapi_client.models.aicamodel_response import AicamodelResponse
|
43
28
|
from openapi_client.models.aioa_cloud_waitlist_record import AioaCloudWaitlistRecord
|
44
29
|
from openapi_client.models.aioacloudwaitlistrecord_response import AioacloudwaitlistrecordResponse
|
45
30
|
from openapi_client.models.alert_type import AlertType
|
@@ -168,7 +153,6 @@ from openapi_client.models.compute_template_config import ComputeTemplateConfig
|
|
168
153
|
from openapi_client.models.compute_template_query import ComputeTemplateQuery
|
169
154
|
from openapi_client.models.computetemplate_response import ComputetemplateResponse
|
170
155
|
from openapi_client.models.computetemplateconfig_response import ComputetemplateconfigResponse
|
171
|
-
from openapi_client.models.create_aica_endpoint import CreateAicaEndpoint
|
172
156
|
from openapi_client.models.create_aioa_cloud_waitlist import CreateAioaCloudWaitlist
|
173
157
|
from openapi_client.models.create_analytics_event import CreateAnalyticsEvent
|
174
158
|
from openapi_client.models.create_app_config import CreateAppConfig
|
@@ -182,7 +166,6 @@ from openapi_client.models.create_build import CreateBuild
|
|
182
166
|
from openapi_client.models.create_cloud_collaborator import CreateCloudCollaborator
|
183
167
|
from openapi_client.models.create_cloud_resource import CreateCloudResource
|
184
168
|
from openapi_client.models.create_cloud_resource_gcp import CreateCloudResourceGCP
|
185
|
-
from openapi_client.models.create_cloud_with_cloud_resource import CreateCloudWithCloudResource
|
186
169
|
from openapi_client.models.create_cluster_compute_config import CreateClusterComputeConfig
|
187
170
|
from openapi_client.models.create_compute_template import CreateComputeTemplate
|
188
171
|
from openapi_client.models.create_compute_template_config import CreateComputeTemplateConfig
|
@@ -331,7 +314,6 @@ from openapi_client.models.head_ip import HeadIp
|
|
331
314
|
from openapi_client.models.headip_response import HeadipResponse
|
332
315
|
from openapi_client.models.http_protocol_config import HttpProtocolConfig
|
333
316
|
from openapi_client.models.idle_termination_status import IdleTerminationStatus
|
334
|
-
from openapi_client.models.import_aica_model import ImportAicaModel
|
335
317
|
from openapi_client.models.instance_usage_budget import InstanceUsageBudget
|
336
318
|
from openapi_client.models.instance_usage_budget_evaluation_period import InstanceUsageBudgetEvaluationPeriod
|
337
319
|
from openapi_client.models.instanceusagebudget_list_response import InstanceusagebudgetListResponse
|
@@ -376,8 +358,6 @@ from openapi_client.models.list_resource_quotas_query import ListResourceQuotasQ
|
|
376
358
|
from openapi_client.models.list_response_metadata import ListResponseMetadata
|
377
359
|
from openapi_client.models.listmachinepoolsresponse_response import ListmachinepoolsresponseResponse
|
378
360
|
from openapi_client.models.listmachinesresponse_response import ListmachinesresponseResponse
|
379
|
-
from openapi_client.models.log_detail import LogDetail
|
380
|
-
from openapi_client.models.log_details import LogDetails
|
381
361
|
from openapi_client.models.log_download_config import LogDownloadConfig
|
382
362
|
from openapi_client.models.log_download_request import LogDownloadRequest
|
383
363
|
from openapi_client.models.log_download_result import LogDownloadResult
|
@@ -386,7 +366,6 @@ from openapi_client.models.log_filter import LogFilter
|
|
386
366
|
from openapi_client.models.log_item import LogItem
|
387
367
|
from openapi_client.models.log_item_batch import LogItemBatch
|
388
368
|
from openapi_client.models.log_stream import LogStream
|
389
|
-
from openapi_client.models.logdetails_response import LogdetailsResponse
|
390
369
|
from openapi_client.models.logdownloadresult_response import LogdownloadresultResponse
|
391
370
|
from openapi_client.models.login_user_params import LoginUserParams
|
392
371
|
from openapi_client.models.logitembatch_response import LogitembatchResponse
|
@@ -423,7 +402,6 @@ from openapi_client.models.minicomputetemplate_list_response import Minicomputet
|
|
423
402
|
from openapi_client.models.miniproject_list_response import MiniprojectListResponse
|
424
403
|
from openapi_client.models.monitor_logs_extension import MonitorLogsExtension
|
425
404
|
from openapi_client.models.nfs_mount_target import NFSMountTarget
|
426
|
-
from openapi_client.models.named_entity import NamedEntity
|
427
405
|
from openapi_client.models.node_registration_aws import NodeRegistrationAWS
|
428
406
|
from openapi_client.models.node_registration_gcp import NodeRegistrationGCP
|
429
407
|
from openapi_client.models.node_registration_k8_s import NodeRegistrationK8S
|
@@ -491,8 +469,6 @@ from openapi_client.models.projects_sort_field import ProjectsSortField
|
|
491
469
|
from openapi_client.models.projects_violating_tree_hierarchy_response import ProjectsViolatingTreeHierarchyResponse
|
492
470
|
from openapi_client.models.projectsviolatingtreehierarchyresponse_response import ProjectsviolatingtreehierarchyresponseResponse
|
493
471
|
from openapi_client.models.protocols import Protocols
|
494
|
-
from openapi_client.models.provider_metadata import ProviderMetadata
|
495
|
-
from openapi_client.models.providermetadata_response import ProvidermetadataResponse
|
496
472
|
from openapi_client.models.python_modules import PythonModules
|
497
473
|
from openapi_client.models.quota import Quota
|
498
474
|
from openapi_client.models.ray_gcs_external_storage_config import RayGCSExternalStorageConfig
|
@@ -623,9 +599,7 @@ from openapi_client.models.update_cloud_with_cloud_resource_gcp import UpdateClo
|
|
623
599
|
from openapi_client.models.update_cluster_dns import UpdateClusterDns
|
624
600
|
from openapi_client.models.update_compute_template import UpdateComputeTemplate
|
625
601
|
from openapi_client.models.update_compute_template_config import UpdateComputeTemplateConfig
|
626
|
-
from openapi_client.models.update_endpoint import UpdateEndpoint
|
627
602
|
from openapi_client.models.update_machine_pool_request import UpdateMachinePoolRequest
|
628
|
-
from openapi_client.models.update_model_deployment import UpdateModelDeployment
|
629
603
|
from openapi_client.models.update_organization_collaborator import UpdateOrganizationCollaborator
|
630
604
|
from openapi_client.models.update_project_collaborator import UpdateProjectCollaborator
|
631
605
|
from openapi_client.models.update_resource_quota import UpdateResourceQuota
|
@@ -30,8 +30,9 @@ class NodeType(object):
|
|
30
30
|
"""
|
31
31
|
HEAD_NODE = "head-node"
|
32
32
|
WORKER_NODES = "worker-nodes"
|
33
|
+
UNKNOWN = "unknown"
|
33
34
|
|
34
|
-
allowable_values = [HEAD_NODE, WORKER_NODES] # noqa: E501
|
35
|
+
allowable_values = [HEAD_NODE, WORKER_NODES, UNKNOWN] # noqa: E501
|
35
36
|
|
36
37
|
"""
|
37
38
|
Attributes:
|
@@ -35,6 +35,7 @@ class RayRuntimeEnvConfig(object):
|
|
35
35
|
openapi_types = {
|
36
36
|
'working_dir': 'str',
|
37
37
|
'py_modules': 'list[str]',
|
38
|
+
'py_executable': 'str',
|
38
39
|
'pip': 'list[str]',
|
39
40
|
'conda': 'object',
|
40
41
|
'env_vars': 'dict(str, str)',
|
@@ -44,13 +45,14 @@ class RayRuntimeEnvConfig(object):
|
|
44
45
|
attribute_map = {
|
45
46
|
'working_dir': 'working_dir',
|
46
47
|
'py_modules': 'py_modules',
|
48
|
+
'py_executable': 'py_executable',
|
47
49
|
'pip': 'pip',
|
48
50
|
'conda': 'conda',
|
49
51
|
'env_vars': 'env_vars',
|
50
52
|
'config': 'config'
|
51
53
|
}
|
52
54
|
|
53
|
-
def __init__(self, working_dir=None, py_modules=None, pip=None, conda=None, env_vars=None, config=None, local_vars_configuration=None): # noqa: E501
|
55
|
+
def __init__(self, working_dir=None, py_modules=None, py_executable=None, pip=None, conda=None, env_vars=None, config=None, local_vars_configuration=None): # noqa: E501
|
54
56
|
"""RayRuntimeEnvConfig - a model defined in OpenAPI""" # noqa: E501
|
55
57
|
if local_vars_configuration is None:
|
56
58
|
local_vars_configuration = Configuration()
|
@@ -58,6 +60,7 @@ class RayRuntimeEnvConfig(object):
|
|
58
60
|
|
59
61
|
self._working_dir = None
|
60
62
|
self._py_modules = None
|
63
|
+
self._py_executable = None
|
61
64
|
self._pip = None
|
62
65
|
self._conda = None
|
63
66
|
self._env_vars = None
|
@@ -68,6 +71,8 @@ class RayRuntimeEnvConfig(object):
|
|
68
71
|
self.working_dir = working_dir
|
69
72
|
if py_modules is not None:
|
70
73
|
self.py_modules = py_modules
|
74
|
+
if py_executable is not None:
|
75
|
+
self.py_executable = py_executable
|
71
76
|
if pip is not None:
|
72
77
|
self.pip = pip
|
73
78
|
if conda is not None:
|
@@ -123,6 +128,29 @@ class RayRuntimeEnvConfig(object):
|
|
123
128
|
|
124
129
|
self._py_modules = py_modules
|
125
130
|
|
131
|
+
@property
|
132
|
+
def py_executable(self):
|
133
|
+
"""Gets the py_executable of this RayRuntimeEnvConfig. # noqa: E501
|
134
|
+
|
135
|
+
Specifies the executable used for running the Ray workers. It can include arguments as well. # noqa: E501
|
136
|
+
|
137
|
+
:return: The py_executable of this RayRuntimeEnvConfig. # noqa: E501
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._py_executable
|
141
|
+
|
142
|
+
@py_executable.setter
|
143
|
+
def py_executable(self, py_executable):
|
144
|
+
"""Sets the py_executable of this RayRuntimeEnvConfig.
|
145
|
+
|
146
|
+
Specifies the executable used for running the Ray workers. It can include arguments as well. # noqa: E501
|
147
|
+
|
148
|
+
:param py_executable: The py_executable of this RayRuntimeEnvConfig. # noqa: E501
|
149
|
+
:type: str
|
150
|
+
"""
|
151
|
+
|
152
|
+
self._py_executable = py_executable
|
153
|
+
|
126
154
|
@property
|
127
155
|
def pip(self):
|
128
156
|
"""Gets the pip of this RayRuntimeEnvConfig. # noqa: E501
|
@@ -43,7 +43,8 @@ class TrainRun(object):
|
|
43
43
|
'end_time_ms': 'int',
|
44
44
|
'attempts': 'list[TrainRunAttempt]',
|
45
45
|
'job_details': 'JobDetails',
|
46
|
-
'session_name': 'str'
|
46
|
+
'session_name': 'str',
|
47
|
+
'controller_log_id': 'str'
|
47
48
|
}
|
48
49
|
|
49
50
|
attribute_map = {
|
@@ -57,10 +58,11 @@ class TrainRun(object):
|
|
57
58
|
'end_time_ms': 'end_time_ms',
|
58
59
|
'attempts': 'attempts',
|
59
60
|
'job_details': 'job_details',
|
60
|
-
'session_name': 'session_name'
|
61
|
+
'session_name': 'session_name',
|
62
|
+
'controller_log_id': 'controller_log_id'
|
61
63
|
}
|
62
64
|
|
63
|
-
def __init__(self, id=None, name=None, job_id=None, controller_actor_id=None, status=None, status_detail=None, start_time_ms=None, end_time_ms=None, attempts=None, job_details=None, session_name=None, local_vars_configuration=None): # noqa: E501
|
65
|
+
def __init__(self, id=None, name=None, job_id=None, controller_actor_id=None, status=None, status_detail=None, start_time_ms=None, end_time_ms=None, attempts=None, job_details=None, session_name=None, controller_log_id=None, local_vars_configuration=None): # noqa: E501
|
64
66
|
"""TrainRun - a model defined in OpenAPI""" # noqa: E501
|
65
67
|
if local_vars_configuration is None:
|
66
68
|
local_vars_configuration = Configuration()
|
@@ -77,6 +79,7 @@ class TrainRun(object):
|
|
77
79
|
self._attempts = None
|
78
80
|
self._job_details = None
|
79
81
|
self._session_name = None
|
82
|
+
self._controller_log_id = None
|
80
83
|
self.discriminator = None
|
81
84
|
|
82
85
|
self.id = id
|
@@ -94,6 +97,8 @@ class TrainRun(object):
|
|
94
97
|
self.job_details = job_details
|
95
98
|
if session_name is not None:
|
96
99
|
self.session_name = session_name
|
100
|
+
if controller_log_id is not None:
|
101
|
+
self.controller_log_id = controller_log_id
|
97
102
|
|
98
103
|
@property
|
99
104
|
def id(self):
|
@@ -340,6 +345,27 @@ class TrainRun(object):
|
|
340
345
|
|
341
346
|
self._session_name = session_name
|
342
347
|
|
348
|
+
@property
|
349
|
+
def controller_log_id(self):
|
350
|
+
"""Gets the controller_log_id of this TrainRun. # noqa: E501
|
351
|
+
|
352
|
+
|
353
|
+
:return: The controller_log_id of this TrainRun. # noqa: E501
|
354
|
+
:rtype: str
|
355
|
+
"""
|
356
|
+
return self._controller_log_id
|
357
|
+
|
358
|
+
@controller_log_id.setter
|
359
|
+
def controller_log_id(self, controller_log_id):
|
360
|
+
"""Sets the controller_log_id of this TrainRun.
|
361
|
+
|
362
|
+
|
363
|
+
:param controller_log_id: The controller_log_id of this TrainRun. # noqa: E501
|
364
|
+
:type: str
|
365
|
+
"""
|
366
|
+
|
367
|
+
self._controller_log_id = controller_log_id
|
368
|
+
|
343
369
|
def to_dict(self):
|
344
370
|
"""Returns the model properties as a dict"""
|
345
371
|
result = {}
|
@@ -42,7 +42,8 @@ class TrainWorker(object):
|
|
42
42
|
'pid': 'int',
|
43
43
|
'gpu_ids': 'list[int]',
|
44
44
|
'status': 'ActorStatus',
|
45
|
-
'resources': 'TrainResources'
|
45
|
+
'resources': 'TrainResources',
|
46
|
+
'log_id': 'str'
|
46
47
|
}
|
47
48
|
|
48
49
|
attribute_map = {
|
@@ -55,10 +56,11 @@ class TrainWorker(object):
|
|
55
56
|
'pid': 'pid',
|
56
57
|
'gpu_ids': 'gpu_ids',
|
57
58
|
'status': 'status',
|
58
|
-
'resources': 'resources'
|
59
|
+
'resources': 'resources',
|
60
|
+
'log_id': 'log_id'
|
59
61
|
}
|
60
62
|
|
61
|
-
def __init__(self, actor_id=None, world_rank=None, local_rank=None, node_rank=None, node_id=None, node_ip=None, pid=None, gpu_ids=None, status=None, resources=None, local_vars_configuration=None): # noqa: E501
|
63
|
+
def __init__(self, actor_id=None, world_rank=None, local_rank=None, node_rank=None, node_id=None, node_ip=None, pid=None, gpu_ids=None, status=None, resources=None, log_id=None, local_vars_configuration=None): # noqa: E501
|
62
64
|
"""TrainWorker - a model defined in OpenAPI""" # noqa: E501
|
63
65
|
if local_vars_configuration is None:
|
64
66
|
local_vars_configuration = Configuration()
|
@@ -74,6 +76,7 @@ class TrainWorker(object):
|
|
74
76
|
self._gpu_ids = None
|
75
77
|
self._status = None
|
76
78
|
self._resources = None
|
79
|
+
self._log_id = None
|
77
80
|
self.discriminator = None
|
78
81
|
|
79
82
|
self.actor_id = actor_id
|
@@ -87,6 +90,8 @@ class TrainWorker(object):
|
|
87
90
|
self.status = status
|
88
91
|
if resources is not None:
|
89
92
|
self.resources = resources
|
93
|
+
if log_id is not None:
|
94
|
+
self.log_id = log_id
|
90
95
|
|
91
96
|
@property
|
92
97
|
def actor_id(self):
|
@@ -316,6 +321,27 @@ class TrainWorker(object):
|
|
316
321
|
|
317
322
|
self._resources = resources
|
318
323
|
|
324
|
+
@property
|
325
|
+
def log_id(self):
|
326
|
+
"""Gets the log_id of this TrainWorker. # noqa: E501
|
327
|
+
|
328
|
+
|
329
|
+
:return: The log_id of this TrainWorker. # noqa: E501
|
330
|
+
:rtype: str
|
331
|
+
"""
|
332
|
+
return self._log_id
|
333
|
+
|
334
|
+
@log_id.setter
|
335
|
+
def log_id(self, log_id):
|
336
|
+
"""Sets the log_id of this TrainWorker.
|
337
|
+
|
338
|
+
|
339
|
+
:param log_id: The log_id of this TrainWorker. # noqa: E501
|
340
|
+
:type: str
|
341
|
+
"""
|
342
|
+
|
343
|
+
self._log_id = log_id
|
344
|
+
|
319
345
|
def to_dict(self):
|
320
346
|
"""Returns the model properties as a dict"""
|
321
347
|
result = {}
|
anyscale/job/_private/job_sdk.py
CHANGED
@@ -67,6 +67,7 @@ class PrivateJobSDK(WorkloadSDK):
|
|
67
67
|
cloud_id=cloud_id,
|
68
68
|
autopopulate_in_workspace=autopopulate_in_workspace,
|
69
69
|
additional_py_modules=config.py_modules,
|
70
|
+
py_executable_override=config.py_executable,
|
70
71
|
)
|
71
72
|
[runtime_env] = self.override_and_load_requirements_files(
|
72
73
|
[runtime_env],
|
@@ -265,6 +266,9 @@ class PrivateJobSDK(WorkloadSDK):
|
|
265
266
|
requirements=runtime_env_config.pip if runtime_env_config else None,
|
266
267
|
working_dir=runtime_env_config.working_dir if runtime_env_config else None,
|
267
268
|
env_vars=runtime_env_config.env_vars if runtime_env_config else None,
|
269
|
+
py_executable=runtime_env_config.py_executable
|
270
|
+
if runtime_env_config
|
271
|
+
else None,
|
268
272
|
entrypoint=prod_job_config.entrypoint,
|
269
273
|
cloud=compute_config.cloud
|
270
274
|
if compute_config and isinstance(compute_config, ComputeConfig)
|
@@ -30,8 +30,9 @@ class NodeType(object):
|
|
30
30
|
"""
|
31
31
|
HEAD_NODE = "head-node"
|
32
32
|
WORKER_NODES = "worker-nodes"
|
33
|
+
UNKNOWN = "unknown"
|
33
34
|
|
34
|
-
allowable_values = [HEAD_NODE, WORKER_NODES] # noqa: E501
|
35
|
+
allowable_values = [HEAD_NODE, WORKER_NODES, UNKNOWN] # noqa: E501
|
35
36
|
|
36
37
|
"""
|
37
38
|
Attributes:
|
@@ -35,6 +35,7 @@ class RayRuntimeEnvConfig(object):
|
|
35
35
|
openapi_types = {
|
36
36
|
'working_dir': 'str',
|
37
37
|
'py_modules': 'list[str]',
|
38
|
+
'py_executable': 'str',
|
38
39
|
'pip': 'list[str]',
|
39
40
|
'conda': 'object',
|
40
41
|
'env_vars': 'dict(str, str)',
|
@@ -44,13 +45,14 @@ class RayRuntimeEnvConfig(object):
|
|
44
45
|
attribute_map = {
|
45
46
|
'working_dir': 'working_dir',
|
46
47
|
'py_modules': 'py_modules',
|
48
|
+
'py_executable': 'py_executable',
|
47
49
|
'pip': 'pip',
|
48
50
|
'conda': 'conda',
|
49
51
|
'env_vars': 'env_vars',
|
50
52
|
'config': 'config'
|
51
53
|
}
|
52
54
|
|
53
|
-
def __init__(self, working_dir=None, py_modules=None, pip=None, conda=None, env_vars=None, config=None, local_vars_configuration=None): # noqa: E501
|
55
|
+
def __init__(self, working_dir=None, py_modules=None, py_executable=None, pip=None, conda=None, env_vars=None, config=None, local_vars_configuration=None): # noqa: E501
|
54
56
|
"""RayRuntimeEnvConfig - a model defined in OpenAPI""" # noqa: E501
|
55
57
|
if local_vars_configuration is None:
|
56
58
|
local_vars_configuration = Configuration()
|
@@ -58,6 +60,7 @@ class RayRuntimeEnvConfig(object):
|
|
58
60
|
|
59
61
|
self._working_dir = None
|
60
62
|
self._py_modules = None
|
63
|
+
self._py_executable = None
|
61
64
|
self._pip = None
|
62
65
|
self._conda = None
|
63
66
|
self._env_vars = None
|
@@ -68,6 +71,8 @@ class RayRuntimeEnvConfig(object):
|
|
68
71
|
self.working_dir = working_dir
|
69
72
|
if py_modules is not None:
|
70
73
|
self.py_modules = py_modules
|
74
|
+
if py_executable is not None:
|
75
|
+
self.py_executable = py_executable
|
71
76
|
if pip is not None:
|
72
77
|
self.pip = pip
|
73
78
|
if conda is not None:
|
@@ -123,6 +128,29 @@ class RayRuntimeEnvConfig(object):
|
|
123
128
|
|
124
129
|
self._py_modules = py_modules
|
125
130
|
|
131
|
+
@property
|
132
|
+
def py_executable(self):
|
133
|
+
"""Gets the py_executable of this RayRuntimeEnvConfig. # noqa: E501
|
134
|
+
|
135
|
+
Specifies the executable used for running the Ray workers. It can include arguments as well. # noqa: E501
|
136
|
+
|
137
|
+
:return: The py_executable of this RayRuntimeEnvConfig. # noqa: E501
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._py_executable
|
141
|
+
|
142
|
+
@py_executable.setter
|
143
|
+
def py_executable(self, py_executable):
|
144
|
+
"""Sets the py_executable of this RayRuntimeEnvConfig.
|
145
|
+
|
146
|
+
Specifies the executable used for running the Ray workers. It can include arguments as well. # noqa: E501
|
147
|
+
|
148
|
+
:param py_executable: The py_executable of this RayRuntimeEnvConfig. # noqa: E501
|
149
|
+
:type: str
|
150
|
+
"""
|
151
|
+
|
152
|
+
self._py_executable = py_executable
|
153
|
+
|
126
154
|
@property
|
127
155
|
def pip(self):
|
128
156
|
"""Gets the pip of this RayRuntimeEnvConfig. # noqa: E501
|
anyscale/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.26.
|
1
|
+
__version__ = "0.26.4"
|