"It is important that the code is called only once and other processes do not overlap, as this would lead to incorrect partition range and missing data in the interface views.Just a few days we had a production issue, and then another one, next day - deadlocks." . . . .