1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-12 23:36:44 +00:00

add dockerfile

This commit is contained in:
2019-04-16 15:33:37 +08:00
parent 5877310950
commit e34d75dc7f
5 changed files with 23 additions and 11 deletions

View File

@@ -49,11 +49,11 @@ func (jm *JobManager) start() {
v.Set("workspace", jm.job.Workspace)
v.Set("gpus", strings.Join(GPUs, ","))
fmt.Print(v.Encode())
fmt.Println(v.Encode())
resp, err := doRequest("POST", "http://kafka_node1:8000/create", strings.NewReader(v.Encode()), "application/x-www-form-urlencoded", "")
resp, err := doRequest("POST", "http://kafka:8000/create", strings.NewReader(v.Encode()), "application/x-www-form-urlencoded", "")
if err != nil {
log.Println(err)
log.Println(err.Error())
return
}
defer resp.Body.Close()