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:01:30 +08:00
parent 7ccb41b831
commit e0e914659f

View File

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