Handle max plans
This commit is contained in:
parent
d77528d0f2
commit
67c0816726
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue