OCA / queue

Asynchronous Job Queue
GNU Affero General Public License v3.0
175 stars 451 forks source link

[16.0][IMP] queue_job_cron: Avoid parallel run #612

Closed lmignon closed 8 months ago

lmignon commented 8 months ago

By default, odoo never runs the same cron job in parallel. This commit uses the identity key mechanism to enforce this mechanism when a cron job is run as a queue job. This behaviour can be controlled by a new setting on the cron definition but is activated by default to keep the original behaviour

OCA-git-bot commented 8 months ago

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

gurneyalex commented 8 months ago

/ocabot merge major

OCA-git-bot commented 8 months ago

What a great day to merge this nice PR. Let's do it! Prepared branch 16.0-ocabot-merge-pr-612-by-gurneyalex-bump-major, awaiting test results.

OCA-git-bot commented 8 months ago

Congratulations, your PR was merged at 277c953a5242e87b16ea8b1a6aec5b14637ad993. Thanks a lot for contributing to OCA. ❤️