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][1/n] Redefine the definition of JobDeploymentStatusComplete #1719

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

kevin85421
Copy link
Member

@kevin85421 kevin85421 commented Dec 6, 2023

Why are these changes needed?

if isJobSucceedOrFailed(rayJobInstance.Status.JobStatus) && rayJobInstance.Status.JobDeploymentStatus != rayv1.JobDeploymentStatusComplete {
  ...
}

The check of JobDeploymentStatusComplete is not necessary because there is a check to skip the reconciliation if the status is rayv1.JobDeploymentStatusComplete.

  • // Do not reconcile the RayJob if the deployment status is marked as Complete
    if rayJobInstance.Status.JobDeploymentStatus == rayv1.JobDeploymentStatusComplete {
    r.Log.Info("rayjob is complete, skip reconciliation", "rayjob", rayJobInstance.Name)
    return ctrl.Result{}, nil
    }

Related issue number

Checks

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

@kevin85421 kevin85421 marked this pull request as ready for review December 6, 2023 23:34
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.

Nice!

@kevin85421 kevin85421 merged commit ce4ec27 into ray-project:master Dec 6, 2023
25 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