From 08dfd8c63cf60f46b315b71c608476dba2423033 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 28 Jul 2015 16:19:52 -0700 Subject: [PATCH] nomad: enable all builtin schedulers by default --- nomad/config.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nomad/config.go b/nomad/config.go index 9b10ce09f..18748b699 100644 --- a/nomad/config.go +++ b/nomad/config.go @@ -8,7 +8,7 @@ import ( "time" "github.com/hashicorp/memberlist" - "github.com/hashicorp/nomad/nomad/structs" + "github.com/hashicorp/nomad/scheduler" "github.com/hashicorp/raft" "github.com/hashicorp/serf/serf" ) @@ -159,10 +159,10 @@ func DefaultConfig() *Config { EvalNackTimeout: 60 * time.Second, } - // TODO: Enable all known schedulers by default - c.EnabledSchedulers = []string{ - structs.JobTypeService, - structs.JobTypeBatch, + // Enable all known schedulers by default + c.EnabledSchedulers = make([]string, 0, len(scheduler.BuiltinSchedulers)) + for name := range scheduler.BuiltinSchedulers { + c.EnabledSchedulers = append(c.EnabledSchedulers, name) } // Increase our reap interval to 3 days instead of 24h.