Skip to content

Pass $maxExceptions from mailable to underlying job when queuing - #44903

Merged
taylorotwell merged 2 commits into
laravel:9.xfrom
sdapkus:9.x
Nov 10, 2022
Merged

Pass $maxExceptions from mailable to underlying job when queuing#44903
taylorotwell merged 2 commits into
laravel:9.xfrom
sdapkus:9.x

Conversation

@sdapkus

@sdapkus sdapkus commented Nov 10, 2022

Copy link
Copy Markdown
Contributor

Normal job that is processed by a queue can have $maxExceptions set to any number.
Mailables that ShouldQueue are missing this options, because of this it is complicated to build RateLimited mailable which would stop on nth unhandled exception, but would retry unlimited times (retryUntil method works perfectly on mailables).

https://laravel.com/docs/9.x/queues#max-exceptions

@taylorotwell
taylorotwell merged commit e10efa6 into laravel:9.x Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants