Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ addon | version | maintainers | summary
[base_export_async](base_export_async/) | 12.0.1.2.0 | | Asynchronous export with job queue
[base_import_async](base_import_async/) | 12.0.2.0.0 | | Import CSV files in the background
[export_async_schedule](export_async_schedule/) | 12.0.1.0.0 | <a href='https://github.com/guewen'><img src='https://github.com/guewen.png' width='32' height='32' style='border-radius:50%;' alt='guewen'/></a> | Generate and send exports by emails on a schedule
[queue_job](queue_job/) | 12.0.4.1.0 | <a href='https://github.com/guewen'><img src='https://github.com/guewen.png' width='32' height='32' style='border-radius:50%;' alt='guewen'/></a> | Job Queue
[queue_job](queue_job/) | 12.0.4.1.1 | <a href='https://github.com/guewen'><img src='https://github.com/guewen.png' width='32' height='32' style='border-radius:50%;' alt='guewen'/></a> | Job Queue
[queue_job_batch](queue_job_batch/) | 12.0.1.0.1 | | Job Queue Batch
[queue_job_cron](queue_job_cron/) | 12.0.1.1.1 | | Scheduled Actions as Queue Jobs
[queue_job_subscribe](queue_job_subscribe/) | 12.0.1.0.0 | | Control which users are subscribed to queue job notifications
Expand Down
8 changes: 6 additions & 2 deletions queue_job/README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. 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 @@ -7,13 +11,13 @@ Job Queue
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3dfd89672df1aef65ff37a75406eea7a38529f2d18c683a8b3c78a2d69891994
!! source digest: sha256:7d4cdab498d774ee758fdeed1df5f06e84d7212c6984650edfc9c1d959385fe7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/licence-LGPL--3-blue.png
.. |badge2| image:: https://img.shields.io/badge/license-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
2 changes: 1 addition & 1 deletion queue_job/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


{'name': 'Job Queue',
'version': '12.0.4.1.0',
'version': '12.0.4.1.1',
'author': 'Camptocamp,ACSONE SA/NV,Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/queue',
'license': 'LGPL-3',
Expand Down
6 changes: 6 additions & 0 deletions queue_job/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ def retry_postpone(job, message, seconds=None):
# traceback in the logs we should have the traceback when all
# retries are exhausted
env.cr.rollback()
# A postponed job is not done: it must not release its dependent
# jobs. Returning here also avoids calling _enqueue_dependent_jobs
# with job.env pointing to the now-closed cursor that
# retry_postpone() opened and closed, which would raise
# "Unable to use a closed cursor".
return ""

except (FailedJobError, Exception) as orig_exception:
buff = StringIO()
Expand Down
Loading