diff --git a/scheduler/util.go b/scheduler/util.go index 1046215a2e9..4e6fdc01ddf 100644 --- a/scheduler/util.go +++ b/scheduler/util.go @@ -337,6 +337,8 @@ func shuffleNodes(nodes []*structs.Node) { // tasksUpdated does a diff between task groups to see if the // tasks, their drivers, environment variables or config have updated. The // inputs are the task group name to diff and two jobs to diff. +// taskUpdated and functions called within assume that the given +// taskGroup has already been checked to not be nil func tasksUpdated(jobA, jobB *structs.Job, taskGroup string) bool { a := jobA.LookupTaskGroup(taskGroup) b := jobB.LookupTaskGroup(taskGroup) diff --git a/website/source/docs/job-specification/spread.html.md b/website/source/docs/job-specification/spread.html.md index 41ab562211f..2703073e32c 100644 --- a/website/source/docs/job-specification/spread.html.md +++ b/website/source/docs/job-specification/spread.html.md @@ -17,8 +17,6 @@ description: |- job -> **spread**
job -> group -> **spread** -
- job -> group -> task -> **spread**