Running the bus garbage collector synchronously during the handling of a request can stall the request for a very long time. Instead, we add this step to the existing auto-vacuum scheduled job that handles this kind of housecleaning. It brings another interesting bonus: it can be scheduled outside of peak hours, which will avoid blocking other bus-related transactions (the GC deletes a lot of rows and takes a lot of exclusive locks in the database) closes odoo/odoo#28326
6 lines
146 B
Python
6 lines
146 B
Python
# -*- coding: utf-8 -*-
|
|
from . import bus
|
|
from . import bus_presence
|
|
from . import res_users
|
|
from . import res_partner
|
|
from . import ir_autovacuum |