diff --git a/docs/cluster/cluster.html b/docs/cluster/cluster.html index 8231fd4fc..5f3a6aad9 100644 --- a/docs/cluster/cluster.html +++ b/docs/cluster/cluster.html @@ -54,6 +54,7 @@
codeflare_sdk.cluster.cluster
codeflare_sdk.cluster.cluster
codeflare_sdk.cluster.cluster
+def job_logs(self, job_id: str) ‑> str
+
This method accesses the head ray node in your cluster and returns the logs for the provided job id.
def job_logs(self, job_id: str) -> str:
+ """
+ This method accesses the head ray node in your cluster and returns the logs for the provided job id.
+ """
+ dashboard_route = self.cluster_dashboard_uri(namespace=self.config.namespace)
+ client = JobSubmissionClient(dashboard_route)
+ return client.get_job_logs(job_id)
+
+def job_status(self, job_id: str) ‑> str
+
This method accesses the head ray node in your cluster and returns the job status for the provided job id.
def job_status(self, job_id: str) -> str:
+ """
+ This method accesses the head ray node in your cluster and returns the job status for the provided job id.
+ """
+ dashboard_route = self.cluster_dashboard_uri(namespace=self.config.namespace)
+ client = JobSubmissionClient(dashboard_route)
+ return client.get_job_status(job_id)
+
+def list_jobs(self) ‑> List
+
This method accesses the head ray node in your cluster and lists the running jobs.
def list_jobs(self) -> List:
+ """
+ This method accesses the head ray node in your cluster and lists the running jobs.
+ """
+ dashboard_route = self.cluster_dashboard_uri(namespace=self.config.namespace)
+ client = JobSubmissionClient(dashboard_route)
+ return client.list_jobs()
+
def status(self, print_to_console: bool = True)
create_app_wrapper
down
is_ready
job_logs
job_status
list_jobs
status
up
codeflare_sdk.cluster.config
class ClusterConfiguration
-(name: str, namespace: str = 'default', head_info: list = <factory>, machine_types: list = <factory>, min_cpus: int = 1, max_cpus: int = 1, min_worker: int = 1, max_worker: int = 1, min_memory: int = 2, max_memory: int = 2, gpu: int = 0, template: str = '/home/meyceoz/Documents/codeflare-sdk/src/codeflare_sdk/templates/new-template.yaml', instascale: bool = False, envs: dict = <factory>, image: str = 'ghcr.io/ibm-ai-foundation/base:ray1.13.0-py38-gpu-pytorch1.12.0cu116-20220826-202124', auth: Authentication = <codeflare_sdk.cluster.auth.Authentication object>)
+(name: str, namespace: str = 'default', head_info: list = <factory>, machine_types: list = <factory>, min_cpus: int = 1, max_cpus: int = 1, min_worker: int = 1, max_worker: int = 1, min_memory: int = 2, max_memory: int = 2, gpu: int = 0, template: str = '/home/meyceoz/Documents/codeflare-sdk/src/codeflare_sdk/templates/new-template.yaml', instascale: bool = False, envs: dict = <factory>, image: str = 'ghcr.io/foundation-model-stack/base:ray2.1.0-py38-gpu-pytorch1.12.0cu116-20221213-193103', auth: Authentication = <codeflare_sdk.cluster.auth.Authentication object>)
This dataclass is used to specify resource requirements and other details, and @@ -122,7 +122,7 @@