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][3/n] Define JobDeploymentStatusInitializing #1737

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

kevin85421
Copy link
Member

@kevin85421 kevin85421 commented Dec 12, 2023

Why are these changes needed?

This PR doesn’t change any code logic. Most of the work was done by #1733.

  • initRayJobStatusIfNeed is the source of truth where JobDeploymentStatusInitializing is defined.
  • JobDeploymentStatusInitializing means that JobID, JobStatus, and RayClusterName are initialized, so double creations of RayCluster CRs and ray job will not happen.
  • JobDeploymentStatusInitializing implies that the RayJob is ready to create or get RayCluster CR.

Related issue number

Checks

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

@@ -35,8 +35,6 @@ type JobDeploymentStatus string
const (
JobDeploymentStatusInitializing JobDeploymentStatus = "Initializing"
JobDeploymentStatusFailedToGetOrCreateRayCluster JobDeploymentStatus = "FailedToGetOrCreateRayCluster"
JobDeploymentStatusWaitForDashboard JobDeploymentStatus = "WaitForDashboard"
Copy link
Member Author

Choose a reason for hiding this comment

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

I forgot to update v1alpha1 in #1733.

@kevin85421 kevin85421 changed the title [WIP] [RayJob][Status][3/n] Define JobDeploymentStatusInitializing Dec 12, 2023
@kevin85421 kevin85421 marked this pull request as ready for review December 12, 2023 00:54
@kevin85421 kevin85421 merged commit 8760d90 into ray-project:master Dec 12, 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