Skip to content
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

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

Merged
merged 2 commits into from
Nov 10, 2022
Merged

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

merged 2 commits into from
Nov 10, 2022

Conversation

sdapkus
Copy link
Contributor

@sdapkus sdapkus commented Nov 10, 2022

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