ignored error returned from LaunchTasks. Technically, this error shouldn't occur. Retrofitted scheduling policies to not receive an error when calling LaunchTasks(...)
This commit is contained in:
parent
f041e6668b
commit
ec18b617da
5 changed files with 7 additions and 21 deletions
|
@ -153,9 +153,7 @@ func (s *MaxMin) ConsumeOffers(spc SchedPolicyContext, driver sched.SchedulerDri
|
|||
|
||||
if offerTaken {
|
||||
baseSchedRef.LogTaskStarting(nil, offer)
|
||||
if err := LaunchTasks([]*mesos.OfferID{offer.Id}, tasks, driver); err != nil {
|
||||
baseSchedRef.LogElectronError(err)
|
||||
}
|
||||
LaunchTasks([]*mesos.OfferID{offer.Id}, tasks, driver)
|
||||
} else {
|
||||
// If there was no match for the task
|
||||
cpus, mem, watts := offerUtils.OfferAgg(offer)
|
||||
|
|
Reference in a new issue