Skip to content

Commit

Permalink
Pass deployment unhealthy threshold to the getAndCheckServeStatus() m…
Browse files Browse the repository at this point in the history
…ethod (#540)

Pass deployment unhealthy threshold to the getAndCheckServeStatus() method.
  • Loading branch information
jianyuan authored Sep 13, 2022
1 parent cae76a5 commit 4cd2013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ray-operator/controllers/ray/rayservice_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ func (r *RayServiceReconciler) reconcileServe(ctx context.Context, rayServiceIns
}

var isHealthy bool
if isHealthy, err = r.getAndCheckServeStatus(rayDashboardClient, rayServiceStatus, nil); err != nil {
if isHealthy, err = r.getAndCheckServeStatus(rayDashboardClient, rayServiceStatus, rayServiceInstance.Spec.DeploymentUnhealthySecondThreshold); err != nil {
if !r.updateAndCheckDashboardStatus(rayServiceStatus, false, rayServiceInstance.Spec.DeploymentUnhealthySecondThreshold) {
logger.Info("Dashboard is unhealthy, restart the cluster.")
r.markRestart(rayServiceInstance)
Expand Down

0 comments on commit 4cd2013

Please sign in to comment.