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

[kubectl-plugin] Change error msg for ray job submit when waiting for cluster #2768

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chiayi
Copy link
Contributor

@chiayi chiayi commented Jan 17, 2025

Why are these changes needed?

Error msg doesn't have an error to print out, printing out "Cluster is not ready" is enough.

Related issue number

Checks

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

@@ -326,7 +326,7 @@ func (options *SubmitJobOptions) Run(ctx context.Context, factory cmdutil.Factor
}
clusterReady = isRayClusterReady(currCluster)
if !clusterReady {
err = fmt.Errorf("Cluster is not ready: %w", err)
err = fmt.Errorf("Cluster is not ready")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we even need an error?

fmt.Println("Cluster is not ready yet...")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it gives visibility to what stage of the command is currently at. WDYT?

Copy link
Collaborator

Choose a reason for hiding this comment

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

by passing an error to fmt.Println instead of just inlining the string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

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.

2 participants