diff --git a/README.md b/README.md index 3a1fe441d3..3d82fe0d3f 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ addon | version | maintainers | summary [queue_job](queue_job/) | 14.0.3.5.1 | [![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.1.1.0 | | Scheduled Actions as Queue Jobs +[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.1 | [![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. diff --git a/queue_job_cron/README.rst b/queue_job_cron/README.rst index aefdfd29fc..1af7bbd853 100644 --- a/queue_job_cron/README.rst +++ b/queue_job_cron/README.rst @@ -7,7 +7,7 @@ Scheduled Actions as Queue Jobs !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:aa76dd498db2f68561588e96c1a5147ad77d477511010f127b2739e96bffae36 + !! source digest: sha256:a915fb38c55eeffc2908a553d3be9afa8c0e2a7ae1380b8d31044d5f45d47a96 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -56,6 +56,24 @@ To configure dedicated channels please refers to queue_job help: https://github. Channels can be used to manage sequential jobs and prevent concurrency accesses. To do that you just have to define a channel per cron limited to 1 at time. +Changelog +========= + +14.0.2.0.0 (2024-02-06) +~~~~~~~~~~~~~~~~~~~~~~~ + +**Features** + +- By default prevent parallel run of the same cron job when run as queue job. + + When a cron job is run by odoo, the odoo runner will prevent parallel run + of the same cron job. Before this change, this was not the case when the + cron job was run as a queue job. A new option is added to the cron job when + run as a queue job to prevent parallel run. This option is set to True by + default. In this way, the behavior is now the same as when the cron job is run + by odoo but you keep the possibility to disable this restriction when run as + a queue job. (`#612 `_) + Bug Tracker =========== diff --git a/queue_job_cron/__manifest__.py b/queue_job_cron/__manifest__.py index a037a3e59b..3053132aef 100644 --- a/queue_job_cron/__manifest__.py +++ b/queue_job_cron/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Scheduled Actions as Queue Jobs", - "version": "14.0.1.1.0", + "version": "14.0.2.0.0", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/queue", "license": "AGPL-3", diff --git a/queue_job_cron/readme/HISTORY.rst b/queue_job_cron/readme/HISTORY.rst new file mode 100644 index 0000000000..435d569844 --- /dev/null +++ b/queue_job_cron/readme/HISTORY.rst @@ -0,0 +1,14 @@ +14.0.2.0.0 (2024-02-06) +~~~~~~~~~~~~~~~~~~~~~~~ + +**Features** + +- By default prevent parallel run of the same cron job when run as queue job. + + When a cron job is run by odoo, the odoo runner will prevent parallel run + of the same cron job. Before this change, this was not the case when the + cron job was run as a queue job. A new option is added to the cron job when + run as a queue job to prevent parallel run. This option is set to True by + default. In this way, the behavior is now the same as when the cron job is run + by odoo but you keep the possibility to disable this restriction when run as + a queue job. (`#612 `_) diff --git a/queue_job_cron/readme/newsfragments/612.feature b/queue_job_cron/readme/newsfragments/612.feature deleted file mode 100644 index 9c521620a2..0000000000 --- a/queue_job_cron/readme/newsfragments/612.feature +++ /dev/null @@ -1,9 +0,0 @@ -By default prevent parallel run of the same cron job when run as queue job. - -When a cron job is run by odoo, the odoo runner will prevent parallel run -of the same cron job. Before this change, this was not the case when the -cron job was run as a queue job. A new option is added to the cron job when -run as a queue job to prevent parallel run. This option is set to True by -default. In this way, the behavior is now the same as when the cron job is run -by odoo but you keep the possibility to disable this restriction when run as -a queue job. diff --git a/queue_job_cron/static/description/index.html b/queue_job_cron/static/description/index.html index 227c1a71b5..957514d083 100644 --- a/queue_job_cron/static/description/index.html +++ b/queue_job_cron/static/description/index.html @@ -1,4 +1,3 @@ - @@ -367,7 +366,7 @@

Scheduled Actions as Queue Jobs

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

Beta License: AGPL-3 OCA/queue Translate me on Weblate Try me on Runboat

This module extends the functionality of queue_job and allows to run an Odoo @@ -377,11 +376,15 @@

Scheduled Actions as Queue Jobs