From 5c16114fbe20bcc41c54dcc3b3e63937a2f97b71 Mon Sep 17 00:00:00 2001 From: Ross Golder Date: Wed, 11 Feb 2026 09:46:24 +0700 Subject: [PATCH 1/3] Make queue_job/controllers/main.py compatible with Python 3.9 Replace Job | None with Optional[Job] and add typing import. --- queue_job/controllers/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/queue_job/controllers/main.py b/queue_job/controllers/main.py index adc450d52d..fde1a296f7 100644 --- a/queue_job/controllers/main.py +++ b/queue_job/controllers/main.py @@ -11,6 +11,8 @@ from psycopg2 import OperationalError, errorcodes from werkzeug.exceptions import BadRequest, Forbidden +from typing import Optional + from odoo import SUPERUSER_ID, _, api, http, registry, tools from odoo.service.model import PG_CONCURRENCY_ERRORS_TO_RETRY @@ -27,7 +29,7 @@ class RunJobController(http.Controller): @classmethod - def _acquire_job(cls, env: api.Environment, job_uuid: str) -> Job | None: + def _acquire_job(cls, env: api.Environment, job_uuid: str) -> Optional[Job]: """Acquire a job for execution. - make sure it is in ENQUEUED state From b9795601a8a5ebf57f1bd3ef80081fdf25e4d984 Mon Sep 17 00:00:00 2001 From: Ross Golder Date: Thu, 12 Feb 2026 06:12:54 +0700 Subject: [PATCH 2/3] Move import to satisfy CI. --- queue_job/controllers/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/queue_job/controllers/main.py b/queue_job/controllers/main.py index fde1a296f7..51f91794b8 100644 --- a/queue_job/controllers/main.py +++ b/queue_job/controllers/main.py @@ -7,12 +7,11 @@ import time import traceback from io import StringIO +from typing import Optional from psycopg2 import OperationalError, errorcodes from werkzeug.exceptions import BadRequest, Forbidden -from typing import Optional - from odoo import SUPERUSER_ID, _, api, http, registry, tools from odoo.service.model import PG_CONCURRENCY_ERRORS_TO_RETRY From 91a8c932b20f3bee2ee84c552f4559e92232725e Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 12 Feb 2026 06:38:00 +0000 Subject: [PATCH 3/3] [BOT] post-merge updates --- README.md | 2 +- queue_job/README.rst | 2 +- queue_job/__manifest__.py | 2 +- queue_job/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d6bcef339c..2a8307ea88 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ addon | version | maintainers | summary --- | --- | --- | --- [base_export_async](base_export_async/) | 16.0.1.2.0 | | Asynchronous export with job queue [base_import_async](base_import_async/) | 16.0.1.2.1 | | Import CSV files in the background -[queue_job](queue_job/) | 16.0.2.13.0 | guewen sbidoul | Job Queue +[queue_job](queue_job/) | 16.0.2.13.1 | guewen sbidoul | Job Queue [queue_job_batch](queue_job_batch/) | 16.0.1.0.1 | | Job Queue Batch [queue_job_cron](queue_job_cron/) | 16.0.2.1.0 | | Scheduled Actions as Queue Jobs [queue_job_cron_jobrunner](queue_job_cron_jobrunner/) | 16.0.1.1.0 | ivantodorovich | Run jobs without a dedicated JobRunner diff --git a/queue_job/README.rst b/queue_job/README.rst index ec1ea67d01..89863f1a1e 100644 --- a/queue_job/README.rst +++ b/queue_job/README.rst @@ -11,7 +11,7 @@ Job Queue !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:6846860017b2a564dba3eb31b31d701c7c08c9f2bda739e3e0c3a03e07ef22f9 + !! source digest: sha256:10dc03f2537877e01294e7b905641edb2d06a2e9f32d4adfc4c4c07224a40ea9 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/queue_job/__manifest__.py b/queue_job/__manifest__.py index 33e2e68ed8..e4de37cd33 100644 --- a/queue_job/__manifest__.py +++ b/queue_job/__manifest__.py @@ -2,7 +2,7 @@ { "name": "Job Queue", - "version": "16.0.2.13.0", + "version": "16.0.2.13.1", "author": "Camptocamp,ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/queue", "license": "LGPL-3", diff --git a/queue_job/static/description/index.html b/queue_job/static/description/index.html index 1f90212907..de0d4f22cd 100644 --- a/queue_job/static/description/index.html +++ b/queue_job/static/description/index.html @@ -372,7 +372,7 @@

Job Queue

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:6846860017b2a564dba3eb31b31d701c7c08c9f2bda739e3e0c3a03e07ef22f9 +!! source digest: sha256:10dc03f2537877e01294e7b905641edb2d06a2e9f32d4adfc4c4c07224a40ea9 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Mature License: LGPL-3 OCA/queue Translate me on Weblate Try me on Runboat

This addon adds an integrated Job Queue to Odoo.