diff --git a/docs/cluster/cluster.html b/docs/cluster/cluster.html index 8a313dc75..82c7c154e 100644 --- a/docs/cluster/cluster.html +++ b/docs/cluster/cluster.html @@ -160,6 +160,16 @@
codeflare_sdk.cluster.cluster
codeflare_sdk.cluster.cluster
+def validate_image_config(self)
+
Validates that the image configuration is not empty.
+:param image: The image string to validate +:raises ValueError: If the image is not specified
def validate_image_config(self):
+ """
+ Validates that the image configuration is not empty.
+
+ :param image: The image string to validate
+ :raises ValueError: If the image is not specified
+ """
+ if self.config.image == "" or self.config.image == None:
+ raise ValueError("Image must be specified in the ClusterConfiguration")
+
def wait_ready(self, timeout: Optional[int] = None, dashboard_check: bool = True)
torchx_config
torchx_scheduler
up
validate_image_config
wait_ready
codeflare_sdk.cluster.config
class ClusterConfiguration
-(name: str, namespace: str = None, head_info: list = <factory>, head_cpus: int = 2, head_memory: int = 8, head_gpus: int = 0, machine_types: list = <factory>, min_cpus: int = 1, max_cpus: int = 1, num_workers: int = 1, min_memory: int = 2, max_memory: int = 2, num_gpus: int = 0, template: str = '/home/runner/work/codeflare-sdk/codeflare-sdk/src/codeflare_sdk/templates/base-template.yaml', instascale: bool = False, mcad: bool = True, envs: dict = <factory>, image: str = 'quay.io/project-codeflare/ray:latest-py39-cu118', local_interactive: bool = False, image_pull_secrets: list = <factory>, dispatch_priority: str = None, openshift_oauth: bool = False, ingress_options: dict = <factory>, ingress_domain: str = None)
+(name: str, namespace: str = None, head_info: list = <factory>, head_cpus: int = 2, head_memory: int = 8, head_gpus: int = 0, machine_types: list = <factory>, min_cpus: int = 1, max_cpus: int = 1, num_workers: int = 1, min_memory: int = 2, max_memory: int = 2, num_gpus: int = 0, template: str = '/home/runner/work/codeflare-sdk/codeflare-sdk/src/codeflare_sdk/templates/base-template.yaml', instascale: bool = False, mcad: bool = True, envs: dict = <factory>, image: str = '', local_interactive: bool = False, image_pull_secrets: list = <factory>, dispatch_priority: str = None, openshift_oauth: bool = False, ingress_options: dict = <factory>, ingress_domain: str = None)
This dataclass is used to specify resource requirements and other details, and @@ -132,7 +132,7 @@