ray-project / kuberay

A toolkit to run Ray applications on Kubernetes
Apache License 2.0
974 stars 330 forks source link

[Chore] Delete redundant pod existance checking #2113

Closed MortalHappiness closed 2 months ago

MortalHappiness commented 2 months ago

Why are these changes needed?

The names of the head and worker pods are generated, so the names are different every time. It is useless to check whether the previous pods are still terminating because we cannot even know their names based on the current names.

https://github.com/ray-project/kuberay/blob/b5f237dcbf222d23faa8cdecf4862693f6429454/ray-operator/controllers/ray/common/pod.go#L95

https://github.com/ray-project/kuberay/blob/b5f237dcbf222d23faa8cdecf4862693f6429454/ray-operator/controllers/ray/common/pod.go#L155

Related issue number

N/A

Checks