1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-13 07:46:43 +00:00
This commit is contained in:
2020-05-02 22:51:13 +08:00
parent a24d93c034
commit 7b7529bf94

View File

@@ -94,6 +94,7 @@ func (jm *JobManager) start() {
GPUs = append(GPUs, GPU.UUID)
}
for attemp := 0; attemp < 3; attemp++ {
v := url.Values{}
v.Set("image", jm.job.Tasks[i].Image)
v.Set("cmd", jm.job.Tasks[i].Cmd)
@@ -127,7 +128,7 @@ func (jm *JobManager) start() {
if res.Code != 0 {
log.Warn(res)
}
}
jm.jobStatus.tasks[jm.job.Tasks[i].Name] = TaskStatus{Id: res.Id, Node: jm.resources[i].ClientHost}
}