Skip to content

Commit a03c72f

Browse files
Changes in docs for release: v0.16.4
1 parent 45d0a74 commit a03c72f

File tree

6 files changed

+174
-277
lines changed

6 files changed

+174
-277
lines changed

Diff for: docs/detailed-documentation/cluster/awload.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.awload</code></h1>
6161
class AWManager:
6262
&#34;&#34;&#34;
6363
An object for submitting and removing existing AppWrapper yamls
64-
to be added to the MCAD queue.
64+
to be added to the Kueue localqueue.
6565
&#34;&#34;&#34;
6666

6767
def __init__(self, filename: str) -&gt; None:
@@ -145,7 +145,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
145145
</code></dt>
146146
<dd>
147147
<div class="desc"><p>An object for submitting and removing existing AppWrapper yamls
148-
to be added to the MCAD queue.</p>
148+
to be added to the Kueue localqueue.</p>
149149
<p>Create the AppWrapper Manager object by passing in an
150150
AppWrapper yaml file</p></div>
151151
<details class="source">
@@ -155,7 +155,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
155155
<pre><code class="python">class AWManager:
156156
&#34;&#34;&#34;
157157
An object for submitting and removing existing AppWrapper yamls
158-
to be added to the MCAD queue.
158+
to be added to the Kueue localqueue.
159159
&#34;&#34;&#34;
160160

161161
def __init__(self, filename: str) -&gt; None:

Diff for: docs/detailed-documentation/cluster/cluster.html

+9-21
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,9 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.cluster</code></h1>
179179
template = self.config.template
180180
image = self.config.image
181181
appwrapper = self.config.appwrapper
182-
instance_types = self.config.machine_types
183182
env = self.config.envs
184183
image_pull_secrets = self.config.image_pull_secrets
185184
write_to_file = self.config.write_to_file
186-
verify_tls = self.config.verify_tls
187185
local_queue = self.config.local_queue
188186
labels = self.config.labels
189187
return generate_appwrapper(
@@ -201,20 +199,18 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.cluster</code></h1>
201199
template=template,
202200
image=image,
203201
appwrapper=appwrapper,
204-
instance_types=instance_types,
205202
env=env,
206203
image_pull_secrets=image_pull_secrets,
207204
write_to_file=write_to_file,
208-
verify_tls=verify_tls,
209205
local_queue=local_queue,
210206
labels=labels,
211207
)
212208

213209
# creates a new cluster with the provided or default spec
214210
def up(self):
215211
&#34;&#34;&#34;
216-
Applies the AppWrapper yaml, pushing the resource request onto
217-
the MCAD queue.
212+
Applies the Cluster yaml, pushing the resource request onto
213+
the Kueue localqueue.
218214
&#34;&#34;&#34;
219215

220216
# check if RayCluster CustomResourceDefinition exists if not throw RuntimeError
@@ -1229,11 +1225,9 @@ <h2 class="section-title" id="header-classes">Classes</h2>
12291225
template = self.config.template
12301226
image = self.config.image
12311227
appwrapper = self.config.appwrapper
1232-
instance_types = self.config.machine_types
12331228
env = self.config.envs
12341229
image_pull_secrets = self.config.image_pull_secrets
12351230
write_to_file = self.config.write_to_file
1236-
verify_tls = self.config.verify_tls
12371231
local_queue = self.config.local_queue
12381232
labels = self.config.labels
12391233
return generate_appwrapper(
@@ -1251,20 +1245,18 @@ <h2 class="section-title" id="header-classes">Classes</h2>
12511245
template=template,
12521246
image=image,
12531247
appwrapper=appwrapper,
1254-
instance_types=instance_types,
12551248
env=env,
12561249
image_pull_secrets=image_pull_secrets,
12571250
write_to_file=write_to_file,
1258-
verify_tls=verify_tls,
12591251
local_queue=local_queue,
12601252
labels=labels,
12611253
)
12621254

12631255
# creates a new cluster with the provided or default spec
12641256
def up(self):
12651257
&#34;&#34;&#34;
1266-
Applies the AppWrapper yaml, pushing the resource request onto
1267-
the MCAD queue.
1258+
Applies the Cluster yaml, pushing the resource request onto
1259+
the Kueue localqueue.
12681260
&#34;&#34;&#34;
12691261

12701262
# check if RayCluster CustomResourceDefinition exists if not throw RuntimeError
@@ -1776,11 +1768,9 @@ <h3>Methods</h3>
17761768
template = self.config.template
17771769
image = self.config.image
17781770
appwrapper = self.config.appwrapper
1779-
instance_types = self.config.machine_types
17801771
env = self.config.envs
17811772
image_pull_secrets = self.config.image_pull_secrets
17821773
write_to_file = self.config.write_to_file
1783-
verify_tls = self.config.verify_tls
17841774
local_queue = self.config.local_queue
17851775
labels = self.config.labels
17861776
return generate_appwrapper(
@@ -1798,11 +1788,9 @@ <h3>Methods</h3>
17981788
template=template,
17991789
image=image,
18001790
appwrapper=appwrapper,
1801-
instance_types=instance_types,
18021791
env=env,
18031792
image_pull_secrets=image_pull_secrets,
18041793
write_to_file=write_to_file,
1805-
verify_tls=verify_tls,
18061794
local_queue=local_queue,
18071795
labels=labels,
18081796
)</code></pre>
@@ -1974,7 +1962,7 @@ <h3>Methods</h3>
19741962
</details>
19751963
</dd>
19761964
<dt id="codeflare_sdk.cluster.cluster.Cluster.list_jobs"><code class="name flex">
1977-
<span>def <span class="ident">list_jobs</span></span>(<span>self) ‑> List[~T]</span>
1965+
<span>def <span class="ident">list_jobs</span></span>(<span>self) ‑> List</span>
19781966
</code></dt>
19791967
<dd>
19801968
<div class="desc"><p>This method accesses the head ray node in your cluster and lists the running jobs.</p></div>
@@ -2090,16 +2078,16 @@ <h3>Methods</h3>
20902078
<span>def <span class="ident">up</span></span>(<span>self)</span>
20912079
</code></dt>
20922080
<dd>
2093-
<div class="desc"><p>Applies the AppWrapper yaml, pushing the resource request onto
2094-
the MCAD queue.</p></div>
2081+
<div class="desc"><p>Applies the Cluster yaml, pushing the resource request onto
2082+
the Kueue localqueue.</p></div>
20952083
<details class="source">
20962084
<summary>
20972085
<span>Expand source code</span>
20982086
</summary>
20992087
<pre><code class="python">def up(self):
21002088
&#34;&#34;&#34;
2101-
Applies the AppWrapper yaml, pushing the resource request onto
2102-
the MCAD queue.
2089+
Applies the Cluster yaml, pushing the resource request onto
2090+
the Kueue localqueue.
21032091
&#34;&#34;&#34;
21042092

21052093
# check if RayCluster CustomResourceDefinition exists if not throw RuntimeError

Diff for: docs/detailed-documentation/cluster/config.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ <h2 class="section-title" id="header-classes">Classes</h2>
133133
<summary>
134134
<span>Expand source code</span>
135135
</summary>
136-
<pre><code class="python">class ClusterConfiguration:
136+
<pre><code class="python">@dataclass
137+
class ClusterConfiguration:
137138
&#34;&#34;&#34;
138139
This dataclass is used to specify resource requirements and other details, and
139140
is passed in as an argument when creating a Cluster object.

Diff for: docs/detailed-documentation/cluster/model.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ <h2 class="section-title" id="header-classes">Classes</h2>
146146
<summary>
147147
<span>Expand source code</span>
148148
</summary>
149-
<pre><code class="python">class AppWrapper:
149+
<pre><code class="python">@dataclass
150+
class AppWrapper:
150151
&#34;&#34;&#34;
151152
For storing information about an AppWrapper.
152153
&#34;&#34;&#34;
@@ -299,7 +300,8 @@ <h3>Class variables</h3>
299300
<summary>
300301
<span>Expand source code</span>
301302
</summary>
302-
<pre><code class="python">class RayCluster:
303+
<pre><code class="python">@dataclass
304+
class RayCluster:
303305
&#34;&#34;&#34;
304306
For storing information about a Ray cluster.
305307
&#34;&#34;&#34;

Diff for: docs/detailed-documentation/job/ray_jobs.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
191191
<dl>
192192
<dt id="codeflare_sdk.job.ray_jobs.RayJobClient"><code class="flex name class">
193193
<span>class <span class="ident">RayJobClient</span></span>
194-
<span>(</span><span>address: Optional[str] = None, create_cluster_if_needed: bool = False, cookies: Optional[Dict[str, Any]] = None, metadata: Optional[Dict[str, Any]] = None, headers: Optional[Dict[str, Any]] = None, verify: Union[str, bool, None] = True)</span>
194+
<span>(</span><span>address: Optional[str] = None, create_cluster_if_needed: bool = False, cookies: Optional[Dict[str, Any]] = None, metadata: Optional[Dict[str, Any]] = None, headers: Optional[Dict[str, Any]] = None, verify: Union[str, bool, ForwardRef(None)] = True)</span>
195195
</code></dt>
196196
<dd>
197197
<div class="desc"><p>A class that functions as a wrapper for the Ray Job Submission Client.</p>
@@ -461,7 +461,7 @@ <h3>Methods</h3>
461461
</details>
462462
</dd>
463463
<dt id="codeflare_sdk.job.ray_jobs.RayJobClient.submit_job"><code class="name flex">
464-
<span>def <span class="ident">submit_job</span></span>(<span>self, entrypoint: str, job_id: Optional[str] = None, runtime_env: Optional[Dict[str, Any]] = None, metadata: Optional[Dict[str, str]] = None, submission_id: Optional[str] = None, entrypoint_num_cpus: Union[int, float, None] = None, entrypoint_num_gpus: Union[int, float, None] = None, entrypoint_resources: Optional[Dict[str, float]] = None) ‑> str</span>
464+
<span>def <span class="ident">submit_job</span></span>(<span>self, entrypoint: str, job_id: Optional[str] = None, runtime_env: Optional[Dict[str, Any]] = None, metadata: Optional[Dict[str, str]] = None, submission_id: Optional[str] = None, entrypoint_num_cpus: Union[int, float, ForwardRef(None)] = None, entrypoint_num_gpus: Union[int, float, ForwardRef(None)] = None, entrypoint_resources: Optional[Dict[str, float]] = None) ‑> str</span>
465465
</code></dt>
466466
<dd>
467467
<div class="desc"><p>Method for submitting jobs to a Ray Cluster and returning the job id with entrypoint being a mandatory field.</p>

0 commit comments

Comments
 (0)