Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions ray-operator/controllers/ray/raycluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,6 @@ func (r *RayClusterReconciler) reconcilePods(ctx context.Context, instance *rayv
r.Recorder.Eventf(instance, nil, corev1.EventTypeNormal, string(utils.DeletedWorkerPod), string(utils.DeleteAction), "Deleted pod %s/%s", pod.Namespace, pod.Name)
}
}
worker.ScaleStrategy.WorkersToDelete = []string{}

runningPods := corev1.PodList{}
for _, pod := range workerPods.Items {
Expand Down Expand Up @@ -1355,11 +1354,8 @@ func (r *RayClusterReconciler) reconcileMultiHostWorkerGroup(ctx context.Context
if err := r.deletePods(ctx, instance, podsToDel, worker.GroupName, "autoscaler scale-down request"); err != nil {
return err
}
worker.ScaleStrategy.WorkersToDelete = []string{}
return fmt.Errorf("deleted %d worker Pods based on ScaleStrategy, requeueing", len(podsToDel))
}
// Clear WorkersToDelete after deletion.
worker.ScaleStrategy.WorkersToDelete = []string{}
}

// 5. Calculate Pod diff for scaling up or down by NumOfHosts.
Expand Down
Loading