// FrameworkMessage is invoked when an executor sends a message. func (s *Scheduler) FrameworkMessage( driver mesossched.SchedulerDriver, executorID *mesosproto.ExecutorID, slaveID *mesosproto.SlaveID, message string) { logrus.Debug("Getting a framework message") switch executorID.GetValue() { case "eremetic-executor": var result interface{} err := json.Unmarshal([]byte(message), &result) if err != nil { logrus.WithError(err).Error("Unable to unmarshal result") return } logrus.Debug(message) default: logrus.WithField("executor_id", executorID.GetValue()).Debug("Received a message from an unknown executor.") } }
func (sched *Scheduler) ExecutorLost(driver sched.SchedulerDriver, executorID *mesos.ExecutorID, slaveID *mesos.SlaveID, status int) { glog.Errorf("lost executor %s on slave %s with status %d", executorID.GetValue(), slaveID.GetValue(), status) }
func (sched *Scheduler) FrameworkMessage(driver sched.SchedulerDriver, executorID *mesos.ExecutorID, slaveID *mesos.SlaveID, data string) { glog.Errorf("got framework message from executor %s on slave %s: %q", executorID.GetValue(), slaveID.GetValue(), data) }