mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-06 05:51:54 +00:00
update
This commit is contained in:
parent
7ccb41b831
commit
e0e914659f
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user