1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-06 05:51:54 +00:00
This commit is contained in:
Newnius 2020-07-01 11:15:06 +08:00
parent e0e914659f
commit 41405513d5

View File

@ -403,6 +403,10 @@ func (optimizer *Optimizer) PredictReq(job Job, role string) MsgJobReq {
str := strings.Split(job.Name, "-")
if len(str) == 2 {
jobName = str[0]
} else if len(str) == 1 {
jobName = job.Name
} else {
return res
}
cmd := ""
params := map[string]int{}