2755af8fac13d2fd5ddc7d90ad3a633ab4c8bd2f
The cron subsystem is the system responsible of running background task at regular interval, it runs in multiple dedicated threads or workers that are independent of the regular HTTP threads/workers. There was a major overhaul of the system in v15 (4b28f1162a) to introduce cron triggers, a way to run a task at a given moment in addition to the regular configured interval. Although the cron system was not extensively tested before that v15 refactor, no new test were introduced with that refactor leaving the system mostly untested. Since then we had to fix multiple subtle concurrency bugs such asb940d1c25fandc06cee44fe. Due to the lack of an existing test suite, no regression tests were added next to those fixes. With this commit we introduce the missing cron test suite. The test suite is separated in two different test cases: - A standard pre-install TransactionCase to test everything that can be tested with a single cursor. This case can be run the usual way with `--test-tags :TestIrCron`. - A non-standard post-install **database breaking** test case to run concurrency tests that often require multiple SQL transactions. This case requires the special `--test-tags database_breaking` to be executed. You MUST backup your current database before running that test or you'll loose data. closes odoo/odoo#97087 Signed-off-by: Julien Castiaux <juc@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%