Friday, December 11, 2020
1 change · master
New functionality added to Odoo
Odoo can now schedule background jobs to run soon instead of waiting for their normal timing. This improves responsiveness for business processes that depend on automated tasks, while also making job processing more reliable when multiple workers run at the same time.
Original PR description
Introduce a way to schedule the execution of cron jobs *soon*. Heavy refactor of the `ir.cron` model so the various parallel queries use the (not so new) `SKIP LOCKED` postgresql select option which skip rows that are locked instead of throwing an exception like `NOWAIT` would do. Various methods has been renamed and the overall selection, execution and update of job records have been re-architectured. The cron worker threads can now to wake up early via a notification on the `cron_trigger` channel of the meta `postgres` database. Task: 2368911