Skip to content

Commit bd8930e

Browse files
Update update-ray-job.kueue-toy-sample.yaml (#3782) (#3788)
Signed-off-by: Troy Chiu <[email protected]> Co-authored-by: Troy Chiu <[email protected]>
1 parent cfd0bfa commit bd8930e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ray-operator/config/samples/ray-job.kueue-toy-sample.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ spec:
88
# The alternative value is "HTTPMode", indicating that KubeRay will submit the Ray job by sending an HTTP request to the RayCluster.
99
# submissionMode: "K8sJobMode"
1010
entrypoint: |
11-
python -c "import time; import ray; ray.init(); [print(f\"iter: {i}, ray.cluster_resources(): {ray.cluster_resources()}\") or time.sleep(1) for i in range(600)]"
11+
python -c "
12+
import time
13+
import ray
14+
ray.init()
15+
for i in range(600):
16+
print(f'iter: {i}, ray.cluster_resources(): {ray.cluster_resources()}')
17+
time.sleep(1)
18+
"
1219
# shutdownAfterJobFinishes specifies whether the RayCluster should be deleted after the RayJob finishes. Default is false.
1320
shutdownAfterJobFinishes: true
1421

0 commit comments

Comments
 (0)