Skip to content

[18.0][IMP] edi_queue_oca: implement on fail hooks - #331

Merged
OCA-git-bot merged 4 commits into
OCA:18.0from
camptocamp:18-queue-on-fail
Sep 14, 2026
Merged

[18.0][IMP] edi_queue_oca: implement on fail hooks#331
OCA-git-bot merged 4 commits into
OCA:18.0from
camptocamp:18-queue-on-fail

Conversation

@simahawk

Copy link
Copy Markdown
Contributor

@simahawk

simahawk commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

TODO: include #335

@SilvioC2C

Copy link
Copy Markdown
Contributor

@simahawk backport of #335 is now included; also, the test-req.txt file updates have been reverted now that OCA/queue#971 has been merged.

@simahawk

simahawk commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

to include #336

@simahawk

Copy link
Copy Markdown
Contributor Author

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-331-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@simahawk your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-331-by-simahawk-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@simahawk

Copy link
Copy Markdown
Contributor Author

I've blocked the merge, the version must be changed as this is a new feature.

grindtildeath and others added 4 commits September 14, 2026 10:38
Rely on new on fail hooks from the queue job module.
The on fail hooks introduced in b3290c7
are declared in a noupdate data file, so databases created before that
commit never got `on_fail_method` on the exchange record job functions,
and failed jobs do not update the exchange record state.

Add a post-migration script to fill the missing values.
The hook joins `exc_name` and `exc_message` as strings, but the message
stored by queue_job is the first argument of the exception, which is
the errno for an OSError and may also be missing. The join then raises
a TypeError and the exchange record is not updated.
@simahawk

Copy link
Copy Markdown
Contributor Author

I've blocked the merge, the version must be changed as this is a new feature.

I kept the upgrade in case someone was already using it.

@simahawk

Copy link
Copy Markdown
Contributor Author

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-331-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit e36384f into OCA:18.0 Sep 14, 2026
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

Sign up for free to 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.

6 participants