Sunday, June 30, 2019
1 change · master
New functionality added to Odoo
Administrators can now configure how many emails the system processes in each queue run instead of relying on a fixed built-in limit. This gives businesses more control over email sending workload and helps tune performance for different deployment sizes.
Original PR description
Description of the issue/feature this PR addresses: Make the send limit in the queue manager configurable Current behavior before PR: At this point in Odoo the queue manager is hardcoded and set to a…
Description of the issue/feature this PR addresses: Make the send limit in the queue manager configurable Current behavior before PR: At this point in Odoo the queue manager is hardcoded and set to a limit of `limit=10000`: https://github.com/odoo/odoo/blob/6af5051e2973cb59d5a778f7df0043d8de03ffe3/addons/mail/models/mail_mail.py#L128 This means the Odoo scheduler for the queue will process 10.000 e-mails at every round and it is not configurable. As a system administrator or user with enough knowledge you will most likely want to configure this value. Desired behavior after PR is merged: You're now able to configure the queue limit in the settings:  I saw the TODO from @len-odoo adding a note "# TODO: make limit configurable" and as one of our customers asked if this was possible/configurable I decided to add the option in right away. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr