7bbe15bc15676a5acba3ed45d8c3b72c31481068
- Get a database with millions of files in the checklist (do not ask how this happened) - Set a cron timeout low enough so that `autovacuum_job` times out The file GC will endlessly timeout without being able to delete any file. This is due to how the `_file_gc` method is built: we first build the whole whitelist, then we perform the deletion. With millions of checklist files, the loop which builds the `whitelist` takes ages. It ultimately leads to a timeout of the scheduled action, and therefore no file is deleted. To avoid this, we delete the files progressively. The checklist is split in chunks, and we check which files must be GC'd in a given checklist chunk. This way the files are removed even in case of timeout, meaning that there will be less files to check during the next run. Eventually the GC won't timeout anymore. closes odoo/odoo#79834 X-original-commit: dbae52479062ace9e2b2d376ec2d601d86482f86 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%