Skip to content

Syncing from upstream OCA/queue (18.0)#542

Merged
bt-admin merged 12 commits intobrain-tec:18.0from
OCA:18.0
Mar 24, 2026
Merged

Syncing from upstream OCA/queue (18.0)#542
bt-admin merged 12 commits intobrain-tec:18.0from
OCA:18.0

Conversation

@bt-admin
Copy link
Copy Markdown

bt_gitbot

guewen and others added 12 commits February 19, 2026 17:36
It is forbidden to commit inside a job, because it releases the job lock
and can cause it to start again, while still being run, by the dead jobs
requeuer. For some use cases, it may actually be legitimate, or at least
be needed in the short term before actual updates in the code.

A new option on the job function, false by default, allow to run the job
in a new transaction, at the cost of an additional connection +
transaction overhead.

Related to #889
False on new databases, True on existing databases.
Should always be False by default on future versions.
As the controller changes env on Job instances.
Signed-off-by guewen
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: queue-18.0/queue-18.0-queue_job
Translate-URL: https://translation.odoo-community.org/projects/queue-18-0/queue-18-0-queue_job/
@bt-admin bt-admin added the 18.0 label Mar 24, 2026
@bt-admin bt-admin merged commit ed41dfc into brain-tec:18.0 Mar 24, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

❌ Patch coverage is 54.34783% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.67%. Comparing base (1ea2c45) to head (81adf54).
⚠️ Report is 58 commits behind head on 18.0.

Files with missing lines Patch % Lines
queue_job/controllers/main.py 10.00% 8 Missing and 1 partial ⚠️
queue_job/job.py 62.50% 8 Missing and 1 partial ⚠️
queue_job/models/queue_job.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             18.0     #542      +/-   ##
==========================================
+ Coverage   82.42%   82.67%   +0.24%     
==========================================
  Files          84       84              
  Lines        4780     4807      +27     
  Branches      418      422       +4     
==========================================
+ Hits         3940     3974      +34     
+ Misses        770      757      -13     
- Partials       70       76       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants