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
1 changed files with 2 additions and 1 deletions

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)