From ee55b992c649b8ea76dc6ca3344a85457524301f Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 4 Sep 2024 10:36:07 +0000 Subject: [PATCH] [BOT] post-merge updates --- README.md | 4 ++-- queue_job/README.rst | 15 +++++++-------- queue_job/__manifest__.py | 2 +- queue_job/static/description/index.html | 16 ++++++++-------- test_queue_job/__manifest__.py | 2 +- 5 files changed, 19 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 2afc78c9e9..f4fc3975b7 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,14 @@ addon | version | maintainers | summary [base_export_async](base_export_async/) | 14.0.1.0.0 | | Asynchronous export with job queue [base_import_async](base_import_async/) | 14.0.1.0.2 | | Import CSV files in the background [export_async_schedule](export_async_schedule/) | 14.0.1.0.1 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) | Generate and send exports by emails on a schedule -[queue_job](queue_job/) | 14.0.3.6.1 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) | Job Queue +[queue_job](queue_job/) | 14.0.3.7.0 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) | Job Queue [queue_job_batch](queue_job_batch/) | 14.0.1.0.1 | | Job Queue Batch [queue_job_context](queue_job_context/) | 14.0.1.0.1 | [![AshishHirapara](https://github.com/AshishHirapara.png?size=30px)](https://github.com/AshishHirapara) | Queue Job, prepare context before enqueue keys [queue_job_cron](queue_job_cron/) | 14.0.2.0.0 | | Scheduled Actions as Queue Jobs [queue_job_cron_jobrunner](queue_job_cron_jobrunner/) | 14.0.1.0.2 | [![ivantodorovich](https://github.com/ivantodorovich.png?size=30px)](https://github.com/ivantodorovich) | Run jobs without a dedicated JobRunner [queue_job_subscribe](queue_job_subscribe/) | 14.0.1.0.0 | | Control which users are subscribed to queue job notifications [test_base_import_async](test_base_import_async/) | 14.0.1.0.1 | | Test suite for base_import_async. Normally you don't need to install this. -[test_queue_job](test_queue_job/) | 14.0.3.3.0 | | Queue Job Tests +[test_queue_job](test_queue_job/) | 14.0.3.4.0 | | Queue Job Tests [test_queue_job_batch](test_queue_job_batch/) | 14.0.1.0.0 | | Test Job Queue Batch [//]: # (end addons) diff --git a/queue_job/README.rst b/queue_job/README.rst index ffcf7d32cb..4e7406e570 100644 --- a/queue_job/README.rst +++ b/queue_job/README.rst @@ -7,7 +7,7 @@ Job Queue !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:86b15d0268936122aebe59dce2eb55468df62ddd7cd3c578dd4c3af1a20621aa + !! source digest: sha256:e11d06541a5a139c82b353f28c24413e9d58961fa44ea00f5dba69f71883224b !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png @@ -408,13 +408,12 @@ Example: When you are developing (ie: connector modules) you might want to bypass the queue job and run your code immediately. -To do so you can set `QUEUE_JOB_NO_DELAY=1` in your enviroment. +To do so you can set `QUEUE_JOB__NO_DELAY=1` in your enviroment. **Bypass jobs in tests** When writing tests on job-related methods is always tricky to deal with -delayed recordsets. To make your testing life easier, -or to run a delayed action immediately, +delayed recordsets. To make your testing life easier you can set `queue_job__no_delay=True` in the context. Tip: you can do this at test case level like this @@ -531,7 +530,7 @@ If you prefer, you can still test the whole thing in a single test, by calling When you are developing (ie: connector modules) you might want to bypass the queue job and run your code immediately. -To do so you can set ``TEST_QUEUE_JOB_NO_DELAY=1`` in your environment. +To do so you can set ``QUEUE_JOB__NO_DELAY=1`` in your environment. .. WARNING:: Do not do this in production @@ -539,7 +538,7 @@ To do so you can set ``TEST_QUEUE_JOB_NO_DELAY=1`` in your environment. You should use ``trap_jobs``, really, but if for any reason you could not use it, and still need to have job methods executed synchronously in your tests, you can -do so by setting ``test_queue_job_no_delay=True`` in the context. +do so by setting ``queue_job__no_delay=True`` in the context. Tip: you can do this at test case level like this @@ -550,7 +549,7 @@ Tip: you can do this at test case level like this super().setUpClass() cls.env = cls.env(context=dict( cls.env.context, - test_queue_job_no_delay=True, # no jobs thanks + queue_job__no_delay=True, # no jobs thanks )) Then all your tests execute the job methods synchronously without delaying any @@ -560,7 +559,7 @@ In tests you'll have to mute the logger like: @mute_logger('odoo.addons.queue_job.models.base') -.. NOTE:: in graphs of jobs, the ``test_queue_job_no_delay`` context key must be in at +.. NOTE:: in graphs of jobs, the ``queue_job__no_delay`` context key must be in at least one job's env of the graph for the whole graph to be executed synchronously diff --git a/queue_job/__manifest__.py b/queue_job/__manifest__.py index 7d561208ef..e77475e328 100644 --- a/queue_job/__manifest__.py +++ b/queue_job/__manifest__.py @@ -2,7 +2,7 @@ { "name": "Job Queue", - "version": "14.0.3.6.1", + "version": "14.0.3.7.0", "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 267132806c..e9f54053dc 100644 --- a/queue_job/static/description/index.html +++ b/queue_job/static/description/index.html @@ -367,7 +367,7 @@

Job Queue

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:86b15d0268936122aebe59dce2eb55468df62ddd7cd3c578dd4c3af1a20621aa +!! source digest: sha256:e11d06541a5a139c82b353f28c24413e9d58961fa44ea00f5dba69f71883224b !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

This addon adds an integrated Job Queue to Odoo.

@@ -719,11 +719,11 @@

Configure default options for job

Bypass jobs on running Odoo

When you are developing (ie: connector modules) you might want to bypass the queue job and run your code immediately.

-

To do so you can set TEST_QUEUE_JOB_NO_DELAY=1 in your enviroment.

+

To do so you can set QUEUE_JOB__NO_DELAY=1 in your enviroment.

Bypass jobs in tests

When writing tests on job-related methods is always tricky to deal with delayed recordsets. To make your testing life easier -you can set test_queue_job_no_delay=True in the context.

+you can set queue_job__no_delay=True in the context.

Tip: you can do this at test case level like this

 @classmethod
@@ -731,7 +731,7 @@ 

Configure default options for job super().setUpClass() cls.env = cls.env(context=dict( cls.env.context, - test_queue_job_no_delay=True, # no jobs thanks + queue_job__no_delay=True, # no jobs thanks ))

Then all your tests execute the job methods synchronously @@ -827,7 +827,7 @@

Testing

Execute jobs synchronously when running Odoo

When you are developing (ie: connector modules) you might want to bypass the queue job and run your code immediately.

-

To do so you can set TEST_QUEUE_JOB_NO_DELAY=1 in your environment.

+

To do so you can set QUEUE_JOB__NO_DELAY=1 in your environment.

Warning

Do not do this in production

@@ -835,7 +835,7 @@

Testing

Execute jobs synchronously in tests

You should use trap_jobs, really, but if for any reason you could not use it, and still need to have job methods executed synchronously in your tests, you can -do so by setting test_queue_job_no_delay=True in the context.

+do so by setting queue_job__no_delay=True in the context.

Tip: you can do this at test case level like this

 @classmethod
@@ -843,7 +843,7 @@ 

Testing

super().setUpClass() cls.env = cls.env(context=dict( cls.env.context, - test_queue_job_no_delay=True, # no jobs thanks + queue_job__no_delay=True, # no jobs thanks ))

Then all your tests execute the job methods synchronously without delaying any @@ -853,7 +853,7 @@

Testing

@mute_logger(‘odoo.addons.queue_job.models.base’)

Note

-

in graphs of jobs, the test_queue_job_no_delay context key must be in at +

in graphs of jobs, the queue_job__no_delay context key must be in at least one job’s env of the graph for the whole graph to be executed synchronously

diff --git a/test_queue_job/__manifest__.py b/test_queue_job/__manifest__.py index e77c99908a..2eab1656b0 100644 --- a/test_queue_job/__manifest__.py +++ b/test_queue_job/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Queue Job Tests", - "version": "14.0.3.3.0", + "version": "14.0.3.4.0", "author": "Camptocamp,Odoo Community Association (OCA)", "license": "LGPL-3", "category": "Generic Modules",