Fix cluster process update on metadata change

This commit is contained in:
Ingo Oppermann
2023-06-28 16:26:36 +02:00
parent a6d454b03f
commit 2b58c11bb1
16 changed files with 612 additions and 25 deletions

View File

@@ -1175,16 +1175,16 @@ func (r *restream) UpdateProcess(id app.ProcessID, config *app.Config) error {
return ErrUnknownProcess
}
// If the new config has the same hash as the current config, do nothing.
if task.process.Config.Equal(config) {
return nil
}
t, err := r.createTask(config)
if err != nil {
return err
}
// If the new config has the same hash as the current config, do nothing.
if task.config.Equal(t.config) {
return nil
}
tid := t.ID()
if !tid.Equal(id) {