Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

lmignon
Copy link
Sponsor Contributor

@lmignon lmignon commented Dec 21, 2023

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

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
@lmignon lmignon force-pushed the 16.0-queue-job-cron-no-parallelism-lmi branch from ae93d45 to 6d0550c Compare December 21, 2023 12:49
@lmignon lmignon marked this pull request as ready for review December 21, 2023 12:49
Copy link
Sponsor

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OCA-git-bot
Copy link
Contributor

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
Copy link
Member

/ocabot merge major

@OCA-git-bot
Copy link
Contributor

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 OCA-git-bot merged commit 3051013 into OCA:16.0 Jan 8, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@sbidoul sbidoul deleted the 16.0-queue-job-cron-no-parallelism-lmi branch January 8, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants