mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-13 07:46:43 +00:00
update
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user