Generic Scheduler handles periodic eval type
This commit is contained in:
parent
cc1b35a90c
commit
a2b56a5cff
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue