I believe retraining will be completed even if you are besieged that same turn.

Retraining wont complete if you are already besieged when you order the retraining.