Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7a6e94b
[FIX] queue_job: prevent conflict w/ TestOverrides:test_creates
amh-mw Jul 7, 2025
f16afac
queue_job: remove DB commits within test of requeue
AnizR Jun 3, 2025
86356d4
[RMV] queue_job: remove test_requeue_dead_job
AnizR Sep 15, 2025
a4084a5
[IMP] queue_job: avoid deprecation warning about datetime utcnow()
acsonefho Aug 12, 2025
db724d7
[DOC] queue_job: remove dead jobs caveat from roadmap
sbidoul Nov 22, 2025
32f2a06
[IMP] queue_job: prevent invalid change of job status
florentx Jun 2, 2025
1e0e7ea
[IMP] queue_job: add job_duration parameter to test job
sbidoul Jan 2, 2026
93c308e
queue_job: declare sbidoul as maintainer
sbidoul Jan 2, 2026
a431427
[FIX] queue_job: fix retry mechanisme for job dependencies
sbidoul Jan 2, 2026
a929fe2
[FIX] queue_job: set exec_time readonly
sbidoul Jan 2, 2026
e0f61a8
[IMP] queue_job: use state constant in lock function
sbidoul Jan 3, 2026
3d0b8bd
queue_job: refactor job acquisition
sbidoul Jan 2, 2026
5408820
[IMP] queue_job: refactor runjob
sbidoul Jan 3, 2026
cfea6a5
[IMP] queue_job: convert job execution logic to class method
sbidoul Jan 3, 2026
7fdadd6
[IMP] queue_job: take weaker locks
sbidoul Jan 4, 2026
319c0bc
[REF] queue_job: documentation cleanup
RLeeOSI Jan 26, 2026
62f6f3a
[IMP] queue_job: prevent commit during queue job execution
sbidoul Jan 21, 2026
d5d29df
Skip check of dependencies when a done job has no dependents
guewen Feb 19, 2026
fd84b86
Fix dependents error after retryable job error
guewen Feb 19, 2026
96782eb
[FIX] queue_job: Fix TestJson
Andrii9090-tecnativa Mar 4, 2026
12a762d
Add 'Allow Commit' option on job functions
guewen Feb 19, 2026
a9bde14
Add parameter to allow commit by default in jobs
guewen Feb 19, 2026
b2949eb
Revert "Add parameter to allow commit by default in jobs"
guewen Feb 20, 2026
1e3b525
Improve documentation on allow commit
guewen Feb 20, 2026
43836d7
Fix missing job.env setter
guewen Feb 24, 2026
6f55287
Add failure retry in queue job test job
guewen Feb 24, 2026
9ca6bcc
Simplify job env management
guewen Feb 24, 2026
8981088
Update upgrade warning link
guewen Feb 27, 2026
cf7d7c8
oca-port: blacklist PR(s) 701, 715, 726, 804 for queue_job
guewen Mar 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .oca/oca-port/blacklist/queue_job.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"pull_requests": {
"OCA/queue#701": "only 18.0",
"OCA/queue#715": "already in 17.0",
"OCA/queue#726": "since 18.0",
"OCA/queue#804": "since 18.0"
}
}
45 changes: 19 additions & 26 deletions queue_job/README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=========
Job Queue
=========
Expand All @@ -17,7 +13,7 @@ Job Queue
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github
Expand Down Expand Up @@ -129,10 +125,14 @@ Configuration

- ``ODOO_QUEUE_JOB_CHANNELS=root:4`` or any other channels
configuration. The default is ``root:1``
- if ``xmlrpc_port`` is not set: ``ODOO_QUEUE_JOB_PORT=8069``

- Start Odoo with ``--load=web,queue_job`` and ``--workers`` greater
than 1. [1]_
- ``ODOO_QUEUE_JOB_PORT=8069``, default ``--http-port``
- ``ODOO_QUEUE_JOB_SCHEME=https``, default ``http``
- ``ODOO_QUEUE_JOB_HOST=load-balancer``, default
``--http-interface`` or ``localhost`` if unset
- ``ODOO_QUEUE_JOB_HTTP_AUTH_USER=jobrunner``, default empty
- ``ODOO_QUEUE_JOB_HTTP_AUTH_PASSWORD=s3cr3t``, default empty
- Start Odoo with ``--load=web,queue_job`` and ``--workers`` greater
than 1. [1]_

- Using the Odoo configuration file:

Expand All @@ -146,6 +146,11 @@ Configuration
(...)
[queue_job]
channels = root:2
scheme = https
host = load-balancer
port = 443
http_auth_user = jobrunner
http_auth_password = s3cr3t

- Confirm the runner is starting correctly by checking the odoo log
file:
Expand Down Expand Up @@ -657,21 +662,6 @@ Known issues / Roadmap

- After creating a new database or installing ``queue_job`` on an
existing database, Odoo must be restarted for the runner to detect it.
- When Odoo shuts down normally, it waits for running jobs to finish.
However, when the Odoo server crashes or is otherwise force-stopped,
running jobs are interrupted while the runner has no chance to know
they have been aborted. In such situations, jobs may remain in
``started`` or ``enqueued`` state after the Odoo server is halted.
Since the runner has no way to know if they are actually running or
not, and does not know for sure if it is safe to restart the jobs, it
does not attempt to restart them automatically. Such stale jobs
therefore fill the running queue and prevent other jobs to start. You
must therefore requeue them manually, either from the Jobs view, or by
running the following SQL statement *before starting Odoo*:

.. code:: sql

update queue_job set state='pending' where state in ('started', 'enqueued')

Changelog
=========
Expand Down Expand Up @@ -737,10 +727,13 @@ promote its widespread use.
.. |maintainer-guewen| image:: https://github.com/guewen.png?size=40px
:target: https://github.com/guewen
:alt: guewen
.. |maintainer-sbidoul| image:: https://github.com/sbidoul.png?size=40px
:target: https://github.com/sbidoul
:alt: sbidoul

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-guewen|
|maintainer-guewen| |maintainer-sbidoul|

This module is part of the `OCA/queue <https://github.com/OCA/queue/tree/17.0/queue_job>`_ project on GitHub.

Expand Down
2 changes: 1 addition & 1 deletion queue_job/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"installable": True,
"development_status": "Mature",
"maintainers": ["guewen"],
"maintainers": ["guewen", "sbidoul"],
"post_init_hook": "post_init_hook",
"post_load": "post_load",
}
Loading
Loading