Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RayJob][Status][19/n] Transition to Complete if the K8s Job fails #1833

Merged
merged 3 commits into from
Jan 16, 2024

Conversation

kevin85421
Copy link
Member

@kevin85421 kevin85421 commented Jan 12, 2024

Why are these changes needed?

#1831 addresses the case where the Ray head can receive and create the Ray job successfully, but the Ray job fails. In that case, the RayJob can transition to JobDeploymentComplete because the KubeRay operator can get the job information from the Ray head and the Ray job is Failed, a terminal state.

This PR handles a different case compared with #1831. This PR focuses on the case that the submitter K8s Job can't send a request to the Ray head successfully. Hence, the KubeRay operator can't get any Ray job information from the Ray head, and the RayJob can't transition to the JobDeploymentComplete status. This PR transitions the status to JobDeploymentComplete when the K8s Job is Failed.

Related issue number

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

Create a RayJob using this YAML. The submitter Kubernetes Job within the RayJob attempts to submit a request to a random address, which results in the Job failing. Without this PR, the RayCluster and the Kubernetes Job will not shut down, even when the Kubernetes Job reaches its backoff limit.

@kevin85421 kevin85421 changed the title [RayJob][Status][19/n] [RayJob][Status][19/n] Transition to Complete if the K8s Job fails Jan 12, 2024
@kevin85421
Copy link
Member Author

cc @andrewsykim

@kevin85421 kevin85421 marked this pull request as ready for review January 13, 2024 00:56
Copy link
Contributor

@architkulkarni architkulkarni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@kevin85421 kevin85421 merged commit d5d7e5f into ray-project:master Jan 16, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants