[OCTRL-1082] fixed race conditions caused by repeated use of GetParent by justonedev1 · Pull Request #800 · AliceO2Group/Control

@justonedev1

@justonedev1 justonedev1 changed the title [core] fixed race conditions caused by repeated use of GetParent [OCTRL-1082] fixed race conditions caused by repeated use of GetParent

Feb 27, 2026

knopers8

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

Comment on lines -721 to +730

t.mu.RLock()
defer t.mu.RUnlock()

if t == nil {
log.Warn("attempted to get properties of nil task")
return make(map[string]string)
}

t.mu.RLock()
defer t.mu.RUnlock()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch