-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add "submit trainingjobs". #526
Conversation
go/paddlectl/submit.go
Outdated
return err | ||
} | ||
|
||
if err := putFilesToPfs(jobPackage, jobName); err != nil { | ||
var respObj interface{} |
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.
Maybe change to:
var respObj map[string]string
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.
Done.Thanks.
@@ -7,42 +14,21 @@ def get_trainingjob(paddlejob): | |||
}, | |||
"spec": { | |||
"image": paddlejob.image, | |||
"port": paddlejob.port, | |||
"ports_num_for_sparse": paddlejob.ports_num_for_sparse, | |||
#"port": paddlejob.port, |
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.
No commented out code please :)
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.
Done.Thanks!
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 think we can form a TrainingJob
resource from Submitter
struct, and only send that TrainingJob
resource to the server. Do not let the django server parse the json to TrainingJob
. Let the python server do less things.
用户配额信息、权限信息在PaddleCloud的。貌似他是不能被绕过的。 @typhoonzero |
@gongweibao 和 @Yancey1989 沟通,明白了的确需要把用户相关的信息和配置放在python端,使 |
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.
LGTM++
Fix #462.