Skip to content

Commit 8f06846

Browse files
sutaakaropenshift-merge-bot[bot]
authored andcommitted
Add RayJobId function to get Ray Job id from CR
1 parent cf3c870 commit 8f06846

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

support/ray.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ func RayJobStatus(job *rayv1.RayJob) rayv1.JobStatus {
4242
return job.Status.JobStatus
4343
}
4444

45+
func RayJobId(job *rayv1.RayJob) string {
46+
return job.Status.JobId
47+
}
48+
4549
func GetRayJobId(t Test, namespace, name string) string {
4650
t.T().Helper()
4751
job := RayJob(t, namespace, name)(t)

0 commit comments

Comments
 (0)