formatted files
This commit is contained in:
parent
ec78480067
commit
13479e03a4
4 changed files with 21 additions and 21 deletions
|
@ -279,7 +279,9 @@ func (s *BinPackedPistonCapper) ResourceOffers(driver sched.SchedulerDriver, off
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't take offer if it doesn't match our task's host requirement
|
// Don't take offer if it doesn't match our task's host requirement
|
||||||
if offerUtils.HostMismatch(*offer.Hostname, task.Host) {continue}
|
if offerUtils.HostMismatch(*offer.Hostname, task.Host) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
for *task.Instances > 0 {
|
for *task.Instances > 0 {
|
||||||
// Does the task fit
|
// Does the task fit
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package schedulers
|
package schedulers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bitbucket.org/sunybingcloud/electron/constants"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"bitbucket.org/sunybingcloud/electron/constants"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func coLocated(tasks map[string]bool) {
|
func coLocated(tasks map[string]bool) {
|
||||||
|
@ -24,4 +24,3 @@ func hostToPowerClass(hostName string) string {
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,4 +45,3 @@ func OrderedKeys(plist PairList) ([]string, error) {
|
||||||
}
|
}
|
||||||
return orderedKeys, nil
|
return orderedKeys, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue