Generic Scheduler handles periodic eval type

This commit is contained in:
Alex Dadgar 2016-02-24 16:20:33 -08:00
parent cc1b35a90c
commit a2b56a5cff

View file

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