Open oxzi opened 4 months ago
Probably not just with (*Incident).RetriggerEscalations
but pretty much everything accessing the Object
struct. I think two regular process event requests for the same object could overlap in way showing a similar problem.
Note that I wouldn't necessarily try to specifically add locking to prevent this but maybe reconsider locking on a higher level. At first glance, locking on the object instead of the incident doesn't sound like a bad idea, so that for each object, at most one event is processed at once.
This has a slight overlap with #266, I wouldn't consider it the same problem and expect fixes for both in the same PR, but it should be at least be taken into account insofar to avoid making it more difficult to fix the other one with the changes for one.