diff --git a/README.md b/README.md index 6ade2fd1ce..fc9c336d90 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Available addons addon | version | maintainers | summary --- | --- | --- | --- [base_export_async](base_export_async/) | 15.0.1.0.1 | | Asynchronous export with job queue -[queue_job](queue_job/) | 15.0.2.3.5 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) | Job Queue +[queue_job](queue_job/) | 15.0.2.3.6 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) | Job Queue [queue_job_cron](queue_job_cron/) | 15.0.1.0.0 | | Scheduled Actions as Queue Jobs [queue_job_cron_jobrunner](queue_job_cron_jobrunner/) | 15.0.2.0.0 | [![ivantodorovich](https://github.com/ivantodorovich.png?size=30px)](https://github.com/ivantodorovich) | Run jobs without a dedicated JobRunner [queue_job_subscribe](queue_job_subscribe/) | 15.0.1.0.0 | | Control which users are subscribed to queue job notifications diff --git a/queue_job/README.rst b/queue_job/README.rst index 091dda318b..2f14c4d1a9 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:c644ae14833638f56b3790ccb0c8a0462ccad04e8ab536f9f0b714ea5562c6d9 + !! source digest: sha256:290cdc9cf3c21ab1393102139ad4fb3782df76fb025676c5cca17db15a825079 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png @@ -455,6 +455,12 @@ tests), and it makes tests smaller. The best way to run such assertions on the enqueued jobs is to use ``odoo.addons.queue_job.tests.common.trap_jobs()``. +Inside this context manager, instead of being added in the database's queue, +jobs are pushed in an in-memory list. The context manager then provides useful +helpers to verify that jobs have been enqueued with the expected arguments. It +even can run the jobs of its list synchronously! Details in +``odoo.addons.queue_job.tests.common.JobsTester``. + A very small example (more details in ``tests/common.py``): .. code-block:: python diff --git a/queue_job/static/description/index.html b/queue_job/static/description/index.html index 8b3351d6b1..2b20918820 100644 --- a/queue_job/static/description/index.html +++ b/queue_job/static/description/index.html @@ -366,7 +366,7 @@

Job Queue

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:c644ae14833638f56b3790ccb0c8a0462ccad04e8ab536f9f0b714ea5562c6d9 +!! source digest: sha256:290cdc9cf3c21ab1393102139ad4fb3782df76fb025676c5cca17db15a825079 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

This addon adds an integrated Job Queue to Odoo.

@@ -758,6 +758,11 @@

Testing

tests), and it makes tests smaller.

The best way to run such assertions on the enqueued jobs is to use odoo.addons.queue_job.tests.common.trap_jobs().

+

Inside this context manager, instead of being added in the database’s queue, +jobs are pushed in an in-memory list. The context manager then provides useful +helpers to verify that jobs have been enqueued with the expected arguments. It +even can run the jobs of its list synchronously! Details in +odoo.addons.queue_job.tests.common.JobsTester.

A very small example (more details in tests/common.py):

 # code