-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batched jobs and then callback behavour is weird #38139
Comments
Hmm, we should probably explore this @themsaid |
This is expected yes with the current way things are configured. The We could technically swallow the exception inside |
@themsaid I understand your point of view that if we just swallow the exception we cannot re execute the Sense the job first succeeded and then the We should probably look at this if we decide to keep the current behavour. |
I personally agree that we should probably catch the exception, report it, and let the batch finish. Even though you can't re-run the |
Description:
If an exception is thrown during the execution in the
then
mehod on a batched job. The last job executed gets marked as failed and therefore the batch has been considered as a failure in the context of withoutallowFailures()
. Which seems a bit weird to me, because that's actually not what has happened.You get some weird behavour in this situation here is my findings during debugging:
false
failure the then method is not triggered the second time sense the batch's pendingJobs table reaches a value bellow0
.Steps To Reproduce:
The text was updated successfully, but these errors were encountered: