Handle max plans

This commit is contained in:
Alex Dadgar 2016-06-20 17:43:02 -07:00
parent d77528d0f2
commit 67c0816726

View file

@ -105,7 +105,7 @@ func (s *GenericScheduler) Process(eval *structs.Evaluation) error {
switch eval.TriggeredBy { switch eval.TriggeredBy {
case structs.EvalTriggerJobRegister, structs.EvalTriggerNodeUpdate, case structs.EvalTriggerJobRegister, structs.EvalTriggerNodeUpdate,
structs.EvalTriggerJobDeregister, structs.EvalTriggerRollingUpdate, structs.EvalTriggerJobDeregister, structs.EvalTriggerRollingUpdate,
structs.EvalTriggerPeriodicJob: structs.EvalTriggerPeriodicJob, structs.EvalTriggerMaxPlans:
default: default:
desc := fmt.Sprintf("scheduler cannot handle '%s' evaluation reason", desc := fmt.Sprintf("scheduler cannot handle '%s' evaluation reason",
eval.TriggeredBy) eval.TriggeredBy)