You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.Info("Wait for the RayCluster.Status.State to be ready before submitting the job.", "RayCluster", rayClusterInstance.Name, "State", rayClusterInstance.Status.State)
207
+
// This is one of only 3 places where we update the RayJob status. For observability
208
+
// while waiting for the RayCluster to become ready, we lift the cluster status.
time.Second*3, time.Millisecond*500).Should(gomega.Equal(1), "Head pod list should have only 1 Pod = %v", headPods.Items)
263
293
264
294
headPod:=headPods.Items[0]
265
-
headPod.Status.Phase=corev1.PodRunning
266
-
headPod.Status.Conditions= []corev1.PodCondition{
267
-
{
268
-
Type: corev1.PodReady,
269
-
Status: corev1.ConditionTrue,
270
-
},
271
-
}
295
+
headPod.Status.Phase=phase
296
+
headPod.Status.Conditions=conditions
272
297
err:=k8sClient.Status().Update(ctx, &headPod)
273
-
gomega.Expect(err).NotTo(gomega.HaveOccurred(), "Failed to update head Pod status to PodRunning")
274
-
275
-
// Make sure the head Pod is updated.
276
-
gomega.Eventually(
277
-
isAllPodsRunningByFilters).WithContext(ctx).WithArguments(headPods, headLabels).WithTimeout(time.Second*15).WithPolling(time.Millisecond*500).Should(gomega.BeTrue(), "Head Pod should be running: %v", headPods.Items)
298
+
gomega.Expect(err).NotTo(gomega.HaveOccurred(), "Failed to update head Pod status to not ready")
278
299
}
279
300
280
301
// Update the status of the worker Pods to Running and Ready. Similar to updateHeadPodToRunningAndReady.
0 commit comments