[18.0][IMP] queue_job: Implement on fail hook - #971
Conversation
Allows to execute a model function when the job fails and will not be retried. [REF] queue_job: Move on fail definition to job function Rename on_fail_hook to on_fail
|
FIX for this feature in 19.0 #974 |
|
TODO backport #974 |
Job.on_fail_method_name was only set as an instance attribute when the job function configured on_fail_method, so on_fail() raised AttributeError for every job that didn't opt into it.
done |
|
@Ricardoalso to cherry-pick to 19 2f7a155 |
|
@simahawk apparently none of your two contacts in the OCA database have the ICLA tag (nor ECLA for that matter). Good opportunity to click and test our shiny new CLA bot :) |
Let's try it 😄 It starts w/ a short list of repos that I don't know if it makes sense
Shall I open a thread somewhere else? |
|
/ocabot merge minor |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at 97b3ad2. Thanks a lot for contributing to OCA. ❤️ |
Yes it's correct. We enabled it on some repos for a pilot phase. If you want it activated on other repos you maintain, just let me know. At this point we determined that many past contribs were accepted under ECLA without ICLA so we need to think what to do about that.
How so? Your signature was created at Sept. 1, 2026, 1:40 p.m. |

Backport of
Allows to execute a model function when the job fails and will not be retried.