From 67c0816726e25f843e190b368871e29a926563f6 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Mon, 20 Jun 2016 17:43:02 -0700 Subject: [PATCH] Handle max plans --- scheduler/generic_sched.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/generic_sched.go b/scheduler/generic_sched.go index e55e78dc6..6649c2337 100644 --- a/scheduler/generic_sched.go +++ b/scheduler/generic_sched.go @@ -105,7 +105,7 @@ func (s *GenericScheduler) Process(eval *structs.Evaluation) error { switch eval.TriggeredBy { case structs.EvalTriggerJobRegister, structs.EvalTriggerNodeUpdate, structs.EvalTriggerJobDeregister, structs.EvalTriggerRollingUpdate, - structs.EvalTriggerPeriodicJob: + structs.EvalTriggerPeriodicJob, structs.EvalTriggerMaxPlans: default: desc := fmt.Sprintf("scheduler cannot handle '%s' evaluation reason", eval.TriggeredBy)