Skip to content

[14.0] Fix cursor already closed error on retryable errors - #441

Merged
OCA-git-bot merged 1 commit into
OCA:14.0from
guewen:14.0-fix-cursor-closed-on-postpone
Jun 21, 2022
Merged

[14.0] Fix cursor already closed error on retryable errors#441
OCA-git-bot merged 1 commit into
OCA:14.0from
guewen:14.0-fix-cursor-closed-on-postpone

Conversation

@guewen

Copy link
Copy Markdown
Member

When a job is postponed because of a retryable error, as the error
is not re-raised, we reach the new method

self._enqueue_dependent_jobs(env, job)

With a closed cursor. Return early in case of postponing, as there is
no chance dependent jobs can become pending anyway.

When a job is postponed because of a retryable error, as the error
is not re-raised, we reach the new method
self._enqueue_dependent_jobs(env, job)
With a closed cursor. Return early in case of postponing, as there is
no chance dependent jobs can become pending anyway.

@simahawksimahawk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems legit

@guewen

Copy link
Copy Markdown
MemberAuthor

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-441-by-guewen-bump-patch, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 03d9ec5. Thanks a lot for contributing to OCA. ❤️

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@guewen@OCA-git-bot@simahawk@yvaucher