good morning!!!!

Skip to content
Snippets Groups Projects
Commit 9474309e authored by Garet Halliday's avatar Garet Halliday
Browse files

pin util if backlogged jobs and len(workers) == 0 to encourage starting another

parent 055d7f36
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,14 @@ func (T *Metrics) MaxJobAge() time.Duration {
}
func (T *Metrics) AverageWorkerUtilization() float64 {
if len(T.Workers) == 0 {
if T.BackloggedJobCount() > 0 {
return 1
} else {
return 0
}
}
idle := time.Duration(0)
active := time.Duration(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment