From 308f008969e92251aac33164bf356bd91359f7dc Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Fri, 19 Jul 2024 16:00:45 +0200 Subject: [PATCH] Only compare configs if the process will get replaced --- cluster/store/process.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cluster/store/process.go b/cluster/store/process.go index ea17dcc4..d7066e13 100644 --- a/cluster/store/process.go +++ b/cluster/store/process.go @@ -72,11 +72,11 @@ func (s *store) updateProcess(cmd CommandUpdateProcess) error { return fmt.Errorf("the process with the ID '%s' doesn't exists%w", srcid, ErrNotFound) } - if p.Config.Equal(cmd.Config) { - return nil - } - if srcid == dstid { + if p.Config.Equal(cmd.Config) { + return nil + } + p.UpdatedAt = time.Now() p.Config = cmd.Config