-
Notifications
You must be signed in to change notification settings - Fork 432
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
[api server] enable job spec server #416
[api server] enable job spec server #416
Conversation
01cbeb7
to
254e64f
Compare
|
||
func (s *RayJobServer) CreateRayJob(ctx context.Context, request *api.CreateRayJobRequest) (*api.RayJob, error) { | ||
// use the namespace in the request to override the namespace in the job definition | ||
request.Job.Namespace = request.Namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for creation, let's do a validation first. check how raycluster did and we can raise some 400 issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Basasuya This is necessary to reduce error creation in cluster. Let's add some validation here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after manual test, job create/list/delete would be OK. but after ray cluster create, seems job can not run through.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel that's a job configuration issue. It works on my side and let's discuss this issue offline.
Let's run this command to fix the lint issue
|
@Jeffwan fixed |
Overall looks good to me. I will leave this change for a while. after v0.3.0 official release, we can merge it to avoid conflicts (fix on master can not be easily cherry-picked into v0.3.0) |
* [api server] enable job spec server * fix for lint * fix for review * fix * fix for lint * fix for review * fix UT / add encoding for runtime env
Why are these changes needed?
add job spec server implement for job server
Related issue number
#389
Checks