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:
Pradyumna Kaushik 2018-02-09 17:31:16 -05:00
parent f041e6668b
commit ec18b617da
5 changed files with 7 additions and 21 deletions

View file

@ -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)