Friday, June 26, 2026
1 change · master
New functionality added to Odoo
Odoo will now record how long each module migration step takes, making it easier to spot unusually slow upgrades. Longer steps are highlighted more prominently so teams can investigate bottlenecks that may cause migration jobs to run longer or time out.
Original PR description
Log as INFO by default, log as RUNBOT if the stage took more than 20 seconds. Currently a 19.0 -> master migration takes about 45mn (2700s) which for 1355 module is an average 2s per, but we're noticing pretty regular timeout where the module loading takes ~1h (3700s)[^1], or 2.7s average. Assuming most modules spend about 0s in their upgrade phases, and a 15mn increase would be outlier module(s) which either take a long time normally and even longer e.g. under load; or which barely take any time normally and get bogged down in some situations. Either way no hard or statistical analysis has been done beforehand so this is an arbitrary starting point, and the cutoff should probably be revised later. [^1]: the upgrade job seems to have a *relatively* constant 15mn around the module loading itself