Merged in akash/LogPolicySwitch (pull request #4)
Scheduling Policy Switch Logger Approved-by: Pradyumna Kaushik <pkaushi1@binghamton.edu>
This commit is contained in:
parent
3fa4a45ca7
commit
b1bd21f730
11 changed files with 94 additions and 4 deletions
|
@ -400,3 +400,9 @@ func (s *BaseScheduler) LogTaskStatusUpdate(status *mesos.TaskStatus) {
|
|||
*status.TaskId.Value, msgColor.Sprint(NameFor(status.State)))
|
||||
s.Log(lmt, msg)
|
||||
}
|
||||
|
||||
func (s *BaseScheduler) LogSchedPolicySwitch(name string, nextPolicy SchedPolicyState) {
|
||||
if s.curSchedPolicy != nextPolicy {
|
||||
s.Log(elecLogDef.SPS, name)
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue