Syncing from upstream OCA/queue (17.0)#480
Merged
bt-admin merged 20 commits intobrain-tec:17.0from Jun 7, 2025
Merged
Conversation
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
Configuration of randomized retry intervals is not possible due to the formatting checks not being updated. This should fix it.
So the time required to compute such fields by the ORM is taken into account when the 'date_done' and 'exec_time' values are set on the job.
Starting from 16.0, we should call `env.flush_all()` instead of `env["base"].flush()`, like it is done few lines below.
* use FIFO, firt createad job will be treat first * if priority are different it take the precedent Yet we are not using channel priority into account
Otherwise, you cannot use any channel other than default ( root.ir_cron)
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: queue-17.0/queue-17.0-queue_job Translate-URL: https://translation.odoo-community.org/projects/queue-17-0/queue-17-0-queue_job/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: queue-17.0/queue-17.0-queue_job_cron Translate-URL: https://translation.odoo-community.org/projects/queue-17-0/queue-17-0-queue_job_cron/
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 17.0 #480 +/- ##
==========================================
+ Coverage 83.13% 83.98% +0.85%
==========================================
Files 69 71 +2
Lines 4156 4383 +227
Branches 387 397 +10
==========================================
+ Hits 3455 3681 +226
+ Misses 623 622 -1
- Partials 78 80 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bt_gitbot