From 8239bfb226b7c29f4059065b674d7190fc40752c Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 29 Nov 2023 15:12:51 +0100 Subject: [PATCH] [IMP] base: higher priority for vacuum There are various cases where we observe crons which systematically face a CPU / memory limit. In a setup where a single worker cron is launched, a failing cron will prevent subsequent crons to run. This happens because the limits are evaluated at the worker level: the worker is killed, then starts over with the same job list order. If the vacuum cron cannot be run anymore, it leads to tables not garbage collected anymore (e.g. `bus_bus`), causing performance issues. To avoid this, we give a higher priority to the vacuum cron. closes odoo/odoo#144210 Signed-off-by: Nicolas Martinelli (nim) --- odoo/addons/base/data/ir_cron_data.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/odoo/addons/base/data/ir_cron_data.xml b/odoo/addons/base/data/ir_cron_data.xml index 662b6db3607..badab78b955 100644 --- a/odoo/addons/base/data/ir_cron_data.xml +++ b/odoo/addons/base/data/ir_cron_data.xml @@ -8,6 +8,7 @@ 1 days -1 + 3