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 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