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

@ -102,9 +102,7 @@ func (s *BinPackSortedWatts) ConsumeOffers(spc SchedPolicyContext, driver sched.
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