From b9972856e5ed973b92f8a2286a5cce41d4e8a0aa Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Wed, 23 Mar 2016 19:08:07 -0700 Subject: [PATCH] Added a note about backward compatibility --- scheduler/generic_sched.go | 1 + scheduler/system_sched.go | 1 + 2 files changed, 2 insertions(+) diff --git a/scheduler/generic_sched.go b/scheduler/generic_sched.go index 72095bf34..98155ed6c 100644 --- a/scheduler/generic_sched.go +++ b/scheduler/generic_sched.go @@ -353,6 +353,7 @@ func (s *GenericScheduler) computePlacements(place []allocTuple) error { // Set fields based on if we found an allocation option if option != nil { // Generate service IDs tasks in this allocation + // COMPAT - This is no longer required and would be removed in v0.4 alloc.PopulateServiceIDs(missing.TaskGroup) alloc.NodeID = option.Node.ID diff --git a/scheduler/system_sched.go b/scheduler/system_sched.go index 34b1bcc18..2b803ba2c 100644 --- a/scheduler/system_sched.go +++ b/scheduler/system_sched.go @@ -254,6 +254,7 @@ func (s *SystemScheduler) computePlacements(place []allocTuple) error { // Set fields based on if we found an allocation option if option != nil { // Generate service IDs tasks in this allocation + // COMPAT - This is no longer required and would be removed in v0.4 alloc.PopulateServiceIDs(missing.TaskGroup) alloc.NodeID = option.Node.ID