From 59aa860c132330dfd0955f849f2f25ce024aa399 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Thu, 30 Nov 2023 10:13:17 -0500 Subject: [PATCH] scheduler: fix task-level consul diff (#19230) Fix `tasksUpdated()` to compare the task level `consul` blocks instead of the group. --- scheduler/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/util.go b/scheduler/util.go index 0dade6571..bcb7094f5 100644 --- a/scheduler/util.go +++ b/scheduler/util.go @@ -289,7 +289,7 @@ func tasksUpdated(jobA, jobB *structs.Job, taskGroup string) comparison { if !at.Vault.Equal(bt.Vault) { return difference("task vault", at.Vault, bt.Vault) } - if c := consulUpdated(a.Consul, b.Consul); c.modified { + if c := consulUpdated(at.Consul, bt.Consul); c.modified { return c } if !slices.EqualFunc(at.Templates, bt.Templates, func(a, b *structs.Template) bool { return a.Equal(b) }) {